Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Nov 22, 2024
1 parent cfca3b5 commit 4d372fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/editor/lua_script_plugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ struct SetPropertyVisitor : reflection::IPropertyVisitor {

WorldEditor& editor = studio->getWorldEditor();
editor.beginCommandGroup("createEntityEx");
EntityRef e = editor.addEntity();
EntityRef e = editor.addEntityAt(DVec3(0, 0, 0));
editor.selectEntities(Span(&e, 1), false);

lua_pushvalue(L, 1);
Expand Down

0 comments on commit 4d372fc

Please sign in to comment.