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

Fix crash when inherit in rootless unsaved scene

This commit is contained in:
Tomasz Chabora
2019-05-31 02:08:37 +02:00
parent a2cf1c3d04
commit 847a74d588

View File

@@ -1283,7 +1283,7 @@ void EditorNode::_dialog_action(String p_file) {
Node *scene = editor_data.get_edited_scene_root(); Node *scene = editor_data.get_edited_scene_root();
// If the previous scene is rootless, just close it in favor of the new one. // If the previous scene is rootless, just close it in favor of the new one.
if (!scene) if (!scene)
_menu_option_confirm(FILE_CLOSE, false); _menu_option_confirm(FILE_CLOSE, true);
load_scene(p_file, false, true); load_scene(p_file, false, true);
} break; } break;