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();
// 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;