mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Merge pull request #618 from Ragora/bugfix-asset-browser-spawn
BugFix: Correct the inability to spawn assorted objects
This commit is contained in:
commit
a621d2593f
1 changed files with 2 additions and 2 deletions
|
|
@ -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 @ "();";
|
||||||
|
|
||||||
|
|
@ -187,4 +187,4 @@ function AssetBrowser::addCreatorClass(%this, %class, %name, %buildfunc)
|
||||||
%args.val[2] = %buildfunc;
|
%args.val[2] = %buildfunc;
|
||||||
|
|
||||||
%this.creatorClassArray.push_back( %group, %args );
|
%this.creatorClassArray.push_back( %group, %args );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue