Fixes issue of not being able to create GameModes or blank MaterialAssets from the Asset Browser

This commit is contained in:
JeffR 2025-06-17 19:08:45 -05:00
parent 46bcd183f7
commit d35a305149
5 changed files with 124 additions and 21 deletions

View file

@ -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)
{