From 4d372fc61e539ce8aac03fa868b3d68b41e6cdbd Mon Sep 17 00:00:00 2001 From: Mikulas Florek Date: Fri, 22 Nov 2024 17:41:31 +0100 Subject: [PATCH] optimization --- src/lua/editor/lua_script_plugins.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/editor/lua_script_plugins.cpp b/src/lua/editor/lua_script_plugins.cpp index a3def4abbe..b88726232c 100644 --- a/src/lua/editor/lua_script_plugins.cpp +++ b/src/lua/editor/lua_script_plugins.cpp @@ -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);