* [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; %method = "build" @ %class;
if( !ObjectBuilderGui.isMethod( %method ) ) if( !ObjectBuilderGui.isMethod( %method ) )
%cmd = "return new " @ %class @ "();"; %cmd = "new " @ %class @ "();";
else else
%cmd = "ObjectBuilderGui." @ %method @ "();"; %cmd = "ObjectBuilderGui." @ %method @ "();";