mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Fixes path var issue that prevented newly created material assets from loading automatically when created via importing
Fixes issue of camera speed popup having a transparent background.
This commit is contained in:
parent
4f1c0769b1
commit
72b489fe25
2 changed files with 6 additions and 4 deletions
|
|
@ -399,8 +399,8 @@ function AssetBrowser::importMaterialAsset(%this, %assetItem)
|
||||||
else if(%childAssetItem.imageType $= "Composite")
|
else if(%childAssetItem.imageType $= "Composite")
|
||||||
%mapFieldName = "PBRConfigMap";
|
%mapFieldName = "PBRConfigMap";
|
||||||
|
|
||||||
%assetPath = fileName(%childAssetItem.filePath);
|
%path = fileName(%childAssetItem.filePath);
|
||||||
%file.writeline(" "@ %mapFieldName @ "[0] = \"" @ %assetPath @"\";");
|
%file.writeline(" "@ %mapFieldName @ "[0] = \"" @ %path @"\";");
|
||||||
%file.writeline(" "@ %mapFieldName @ "Asset[0] = \"" @ %moduleName @ ":" @ %childAssetItem.assetName @"\";");
|
%file.writeline(" "@ %mapFieldName @ "Asset[0] = \"" @ %moduleName @ ":" @ %childAssetItem.assetName @"\";");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -413,7 +413,7 @@ function AssetBrowser::importMaterialAsset(%this, %assetItem)
|
||||||
%moduleDef = ModuleDatabase.findModule(%moduleName,1);
|
%moduleDef = ModuleDatabase.findModule(%moduleName,1);
|
||||||
|
|
||||||
if(!AssetBrowser.isAssetReImport)
|
if(!AssetBrowser.isAssetReImport)
|
||||||
AssetDatabase.addDeclaredAsset(%moduleDef, %assetPath @ "/" @ %assetName @ ".asset.taml");
|
AssetDatabase.addDeclaredAsset(%moduleDef, %tamlpath);
|
||||||
else
|
else
|
||||||
AssetDatabase.refreshAsset(%assetId);
|
AssetDatabase.refreshAsset(%assetId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1232,8 +1232,10 @@ singleton GuiControlProfile (inspectorStyleRolloutNoHeaderProfile)
|
||||||
singleton GuiControlProfile (IconDropdownProfile)
|
singleton GuiControlProfile (IconDropdownProfile)
|
||||||
{
|
{
|
||||||
border = -2;
|
border = -2;
|
||||||
|
opaque = true;
|
||||||
|
border = true;
|
||||||
category = "Editor";
|
category = "Editor";
|
||||||
//bitmap = "./icon-dropdownbar";
|
//bitmap = "./icon-dropdownbar";
|
||||||
|
|
||||||
fillColor = "0 0 0";
|
fillColor = EditorSettings.value("Theme/headerColor");
|
||||||
};
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue