* [Editor] BugFix: Correct an object spawning error when attempting to drag and drop datablocks from the asset browser where they would always spawn at origin.

This commit is contained in:
Robert MacGregor 2021-09-24 18:34:57 -04:00
parent 2e153e43e0
commit d7919950bf

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