diff --git a/main/main.cpp b/main/main.cpp index 5f791159f9..65fd961f78 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1730,7 +1730,6 @@ bool Main::start() { } } - String main_loop_type; #ifdef TOOLS_ENABLED if (doc_tool != "") { Engine::get_singleton()->set_editor_hint( @@ -1825,6 +1824,7 @@ bool Main::start() { if (editor) { main_loop = memnew(SceneTree); }; + String main_loop_type = GLOBAL_DEF("application/run/main_loop_type", "SceneTree"); if (script != "") { Ref