mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
fix unspecified storage location mangle for new asset creation
This commit is contained in:
parent
e708ae53d2
commit
fb75b21090
|
|
@ -31,7 +31,7 @@ function AssetBrowser::createCpp(%this)
|
|||
|
||||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
//%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%codePath = %assetPath @ %assetName @ ".cpp";
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ function AssetBrowser::createCubemapAsset(%this)
|
|||
%modulePath = "data/" @ %moduleName;
|
||||
|
||||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%shapeFilePath = %assetPath @ %assetName @ ".dae";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function AssetBrowser::createGUIAsset(%this)
|
|||
|
||||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%guipath = %assetPath @ %assetName @ ".gui";
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ function AssetBrowser::importImageAsset(%this, %assetItem)
|
|||
%assetImportSuccessful = false;
|
||||
%assetId = %moduleName@":"@%assetName;
|
||||
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%assetFullPath = %assetPath @ "/" @ fileName(%filePath);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ function AssetBrowser::createLevelAsset(%this)
|
|||
|
||||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%levelPath = %assetPath @ %assetName @ ".mis";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function AssetBrowser::createMaterialAsset(%this)
|
|||
%moduleName = AssetBrowser.newAssetSettings.moduleName;
|
||||
%modulePath = "data/" @ %moduleName;
|
||||
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
|
||||
|
|
@ -309,7 +309,7 @@ function AssetBrowser::importMaterialAsset(%this, %assetItem)
|
|||
%assetImportSuccessful = false;
|
||||
%assetId = %moduleName@":"@%assetName;
|
||||
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%sgfPath = %assetPath @ %assetName @ ".sgf";
|
||||
%scriptPath = %assetPath @ %assetName @ "." @ $TorqueScriptFileExtension;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ function AssetBrowser::createPostEffectAsset(%this)
|
|||
%moduleName = AssetBrowser.newAssetSettings.moduleName;
|
||||
|
||||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%scriptPath = %assetPath @ %assetName @ "." @ $TorqueScriptFileExtension;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function AssetBrowser::createPrefab(%this)
|
|||
|
||||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%prefabFilePath = %assetPath @ %assetName @ ".prefab";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function AssetBrowser::createScriptAsset(%this)
|
|||
|
||||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%scriptPath = %assetPath @ %assetName @ "." @ $TorqueScriptFileExtension;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function AssetBrowser::createShapeAsset(%this)
|
|||
|
||||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%shapeFilePath = %assetPath @ %assetName @ ".dae";
|
||||
|
|
@ -135,7 +135,7 @@ function AssetBrowser::importShapeAsset(%this, %assetItem)
|
|||
%assetImportSuccessful = false;
|
||||
%assetId = %moduleName@":"@%assetName;
|
||||
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
%assetFullPath = %assetPath @ fileName(%filePath);
|
||||
|
||||
%newAsset = new ShapeAsset()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ function AssetBrowser::createStateMachineAsset(%this)
|
|||
{
|
||||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
%moduleName = AssetBrowser.selectedModule;
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%assetQuery = new AssetQuery();
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ function AssetBrowser::createTerrainAsset(%this)
|
|||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
|
||||
%assetType = AssetBrowser.newAssetSettings.assetType;
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
//Ensure anything we generate goes into the right directory
|
||||
$pref::Directories::Terrain = %assetPath;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ function AssetBrowser::createTerrainMaterialAsset(%this)
|
|||
%assetName = AssetBrowser.newAssetSettings.assetName;
|
||||
|
||||
%assetType = AssetBrowser.newAssetSettings.assetType;
|
||||
%assetPath = AssetBrowser.dirHandler.currentAddress @ "/";
|
||||
%assetPath = NewAssetTargetAddress.getText() @ "/";
|
||||
|
||||
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||
%scriptPath = %assetPath @ %assetName @ "." @ $TorqueScriptFileExtension;
|
||||
|
|
|
|||
Loading…
Reference in a new issue