summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 2b5d52d92e..bdae1bb1b0 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1511,6 +1511,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
main_args.push_back(arg);
main_args.push_back(N->get());
N = N->next();
+ // GDScript docgen requires Autoloads, but loading those also creates a main loop.
+ // This forces main loop to quit without adding more GDScript-specific exceptions to setup.
+ quit_after = 1;
} else {
OS::get_singleton()->print("Missing relative or absolute path to project for --gdscript-docs, aborting.\n");
goto error;