Merge pull request #618 from Ragora/bugfix-asset-browser-spawn

BugFix: Correct the inability to spawn assorted objects
This commit is contained in:
Brian Roberts 2021-10-11 19:20:23 -05:00 committed by GitHub
commit a621d2593f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 );
}
}