mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix Editor crash during first scan in headless import mode.
This commit is contained in:
parent
0dd9178269
commit
aa086fa0d5
3 changed files with 4 additions and 8 deletions
|
|
@ -1653,6 +1653,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
upwards = true;
|
||||
} else if (arg == "--quit") { // Auto quit at the end of the first main loop iteration
|
||||
quit_after = 1;
|
||||
#ifdef TOOLS_ENABLED
|
||||
wait_for_import = true;
|
||||
#endif
|
||||
} else if (arg == "--quit-after") { // Quit after the given number of iterations
|
||||
if (N) {
|
||||
quit_after = N->get().to_int();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue