You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[Editor] Unload addons when using --import or --quit.
This commit is contained in:
@@ -4176,7 +4176,13 @@ bool Main::iteration() {
|
||||
movie_writer->add_frame();
|
||||
}
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
bool quit_after_timeout = false;
|
||||
#endif
|
||||
if ((quit_after > 0) && (Engine::get_singleton()->_process_frames >= quit_after)) {
|
||||
#ifdef TOOLS_ENABLED
|
||||
quit_after_timeout = true;
|
||||
#endif
|
||||
exit = true;
|
||||
}
|
||||
|
||||
@@ -4209,6 +4215,12 @@ bool Main::iteration() {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (exit && quit_after_timeout && EditorNode::get_singleton()) {
|
||||
EditorNode::get_singleton()->unload_editor_addons();
|
||||
}
|
||||
#endif
|
||||
|
||||
return exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user