diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2019-05-31 02:08:37 +0200 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2019-05-31 02:08:37 +0200 |
commit | 847a74d588f15fca33bc73d0a12e7d12688e5937 (patch) | |
tree | 34ff62f18806cf4c5480beeca85deb2b3764c105 | |
parent | a2cf1c3d049d0ca4de9d939550d1fb21c4d54297 (diff) |
Fix crash when inherit in rootless unsaved scene
-rw-r--r-- | editor/editor_node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 1dd68309ae..b8f3ee23f0 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -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; |