mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Merge branch 'Standardized_AB_AssetManagement' of https://github.com/Areloch/Torque3D into development
This commit is contained in:
commit
c2af4e578b
39 changed files with 1921 additions and 3659 deletions
|
|
@ -119,11 +119,7 @@ function AssetBrowser::setupCreateNewAsset(%this, %assetType, %moduleName, %call
|
|||
NewAssetPropertiesInspector.addCallbackField("description", "Description", "Command", "Description of the new asset", "", "", "updateNewAssetField", %this.newAssetSettings);
|
||||
NewAssetPropertiesInspector.endGroup();
|
||||
|
||||
if(%this.isMethod("setupCreateNew"@%assetType))
|
||||
{
|
||||
%command = %this @ ".setupCreateNew"@%assetType @"();";
|
||||
eval(%command);
|
||||
}
|
||||
%this.callAssetTypeFunc(%assetType, "setupCreateNew");
|
||||
|
||||
NewAssetPropertiesInspector.refresh();
|
||||
}
|
||||
|
|
@ -255,7 +251,7 @@ function CreateNewAsset()
|
|||
return;
|
||||
}
|
||||
|
||||
%assetFilePath = eval(AssetBrowser @ ".create"@%assetType@"();");
|
||||
%assetFilePath = AssetBrowser.callAssetTypeFunc(%assetType, "onCreateNew");
|
||||
|
||||
Canvas.popDialog(AssetBrowser_newAsset);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue