mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
* [AssetBrowser] BugFix: Correct the inability to spawn assorted objects.
This commit is contained in:
parent
fe3edb8ccf
commit
8b29dae3b9
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue