1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00

Fix Godot not quitting with --doctool --gdscript-docs.

(cherry picked from commit 13b20820ba)
This commit is contained in:
ocean
2024-08-16 15:22:17 -04:00
committed by Rémi Verschelde
parent 6aff947ee5
commit 6eea970e8c

View File

@@ -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(arg);
main_args.push_back(N->get()); main_args.push_back(N->get());
N = N->next(); 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 { } else {
OS::get_singleton()->print("Missing relative or absolute path to project for --gdscript-docs, aborting.\n"); OS::get_singleton()->print("Missing relative or absolute path to project for --gdscript-docs, aborting.\n");
goto error; goto error;