Merge pull request #29334 from KoBeWi/not_crash_is_true

Fix crash when inherit in rootless unsaved scene
This commit is contained in:
Rémi Verschelde 2019-05-31 10:08:51 +02:00 committed by GitHub
commit b9802149bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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