You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Don't save project on startup in headless or no-window mode
(cherry picked from commit ea2489ce93)
This commit is contained in:
@@ -510,8 +510,10 @@ void EditorNode::_notification(int p_what) {
|
|||||||
|
|
||||||
_update_debug_options();
|
_update_debug_options();
|
||||||
|
|
||||||
// Save the project after opening to mark it as last modified.
|
// Save the project after opening to mark it as last modified, except in headless mode.
|
||||||
|
if (OS::get_singleton()->can_draw() && !OS::get_singleton()->is_no_window_mode_enabled()) {
|
||||||
ProjectSettings::get_singleton()->save();
|
ProjectSettings::get_singleton()->save();
|
||||||
|
}
|
||||||
|
|
||||||
/* DO NOT LOAD SCENES HERE, WAIT FOR FILE SCANNING AND REIMPORT TO COMPLETE */
|
/* DO NOT LOAD SCENES HERE, WAIT FOR FILE SCANNING AND REIMPORT TO COMPLETE */
|
||||||
} break;
|
} break;
|
||||||
|
|||||||
Reference in New Issue
Block a user