Merge pull request #592 from Ragora/bugfix-worldeditor-datablock-spawning

* BugFix: Correct an object spawning error
This commit is contained in:
Jeff Hutchinson 2021-09-24 19:11:41 -04:00 committed by GitHub
commit 0f89373782
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,7 +227,7 @@ function EWCreatorWindow::createObject( %this, %cmd )
%this.setNewObjectGroup( getScene(0) );
pushInstantGroup();
%objId = eval(%cmd);
%objId = eval("return " @ %cmd);
popInstantGroup();
if( isObject( %objId ) )