mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Fixes issue of not being able to create GameModes or blank MaterialAssets from the Asset Browser
This commit is contained in:
parent
46bcd183f7
commit
d35a305149
5 changed files with 124 additions and 21 deletions
|
|
@ -72,7 +72,7 @@ function AssetBrowser::callAssetTypeFunc(%this, %type, %function, %param0, %para
|
|||
{
|
||||
%group = ABAssetTypesList.getKey(%i);
|
||||
%typeData = ABAssetTypesList.getValue(%i);
|
||||
|
||||
|
||||
if(getField(%typeData, 0) $= %type)
|
||||
{
|
||||
%typeGroup = %group;
|
||||
|
|
@ -80,7 +80,7 @@ function AssetBrowser::callAssetTypeFunc(%this, %type, %function, %param0, %para
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
%paramOffset = 0;
|
||||
%isStaticCall = false;
|
||||
%command = "";
|
||||
|
|
@ -246,6 +246,26 @@ function AssetBrowser::callAssetTypeFunc(%this, %type, %function, %param0, %para
|
|||
return %return;
|
||||
}
|
||||
|
||||
function AssetBrowser::getAssetTypeGroup(%typeName)
|
||||
{
|
||||
%typeGroup = "";
|
||||
%typeData = "";
|
||||
for(%i=0; %i < ABAssetTypesList.count(); %i++)
|
||||
{
|
||||
%group = ABAssetTypesList.getKey(%i);
|
||||
%typeData = ABAssetTypesList.getValue(%i);
|
||||
|
||||
if(getField(%typeData, 0) $= %typeName)
|
||||
{
|
||||
%typeGroup = %group;
|
||||
%typeData = %typeData;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return %typeGroup;
|
||||
}
|
||||
|
||||
//
|
||||
function AssetBrowser::initialize(%this)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue