* [AssetBrowser] BugFix: Correct the inability to spawn assorted objects.

This commit is contained in:
Robert MacGregor 2021-10-11 20:12:32 -04:00
parent fe3edb8ccf
commit 8b29dae3b9

View file

@ -174,7 +174,7 @@ function AssetBrowser::addCreatorClass(%this, %class, %name, %buildfunc)
%method = "build" @ %class;
if( !ObjectBuilderGui.isMethod( %method ) )
%cmd = "return new " @ %class @ "();";
%cmd = "new " @ %class @ "();";
else
%cmd = "ObjectBuilderGui." @ %method @ "();";
@ -187,4 +187,4 @@ function AssetBrowser::addCreatorClass(%this, %class, %name, %buildfunc)
%args.val[2] = %buildfunc;
%this.creatorClassArray.push_back( %group, %args );
}
}