1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Don't save project on startup in headless mode

This commit is contained in:
kobewi
2021-07-23 12:44:35 +02:00
committed by Rémi Verschelde
parent eadf9d92f9
commit ea2489ce93

View File

@@ -613,8 +613,10 @@ void EditorNode::_notification(int p_what) {
_editor_select(EDITOR_3D);
}
// Save the project after opening to mark it as last modified.
ProjectSettings::get_singleton()->save();
// Save the project after opening to mark it as last modified, except in headless mode.
if (DisplayServer::get_singleton()->window_can_draw()) {
ProjectSettings::get_singleton()->save();
}
/* DO NOT LOAD SCENES HERE, WAIT FOR FILE SCANNING AND REIMPORT TO COMPLETE */
} break;