mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 14:55:39 +00:00
fix material editor
material editor now handles named targets propertly when loading also update preview image in material editor
This commit is contained in:
parent
16d219769f
commit
e1a2a6d9f9
2 changed files with 23 additions and 10 deletions
|
|
@ -2772,6 +2772,7 @@ function AssetBrowser::importLooseFiles(%this)
|
|||
|
||||
function getAssetPreviewImage(%asset)
|
||||
{
|
||||
echo(%asset);
|
||||
if(isFile(%asset))
|
||||
{
|
||||
%aq = new AssetQuery();
|
||||
|
|
@ -2793,7 +2794,7 @@ function getAssetPreviewImage(%asset)
|
|||
%moduleName = AssetDatabase.getAssetModule(%asset).ModuleId;
|
||||
%assetName = AssetDatabase.getAssetName(%asset);
|
||||
%previewAssetName = "ToolsModule:" @ %moduleName @ "_" @ %assetName @ "_PreviewImage";
|
||||
|
||||
echo(%previewAssetName);
|
||||
if(AssetDatabase.isDeclaredAsset(%previewAssetName))
|
||||
{
|
||||
%previewDef = AssetDatabase.acquireAsset(%previewAssetName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue