1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Fix main scene not being saved when set via Play button

Fixes #1134 for real. Also tweaked the engine.cfg template
and the preference order when browsing for the main scene.
This commit is contained in:
Rémi Verschelde
2016-07-19 21:35:14 +02:00
parent 525fb01fd2
commit 87d0515d09
3 changed files with 6 additions and 3 deletions

View File

@@ -1175,6 +1175,8 @@ void EditorNode::_dialog_action(String p_file) {
case SETTINGS_PICK_MAIN_SCENE: {
Globals::get_singleton()->set("application/main_scene",p_file);
Globals::get_singleton()->set_persisting("application/main_scene",true);
Globals::get_singleton()->save();
//would be nice to show the project manager opened with the hilighted field..
} break;
case FILE_SAVE_OPTIMIZED: {