summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-31 10:08:51 +0200
committerGitHub <noreply@github.com>2019-05-31 10:08:51 +0200
commitb9802149bbe7796e174b8d6bbec9f96b44c39c59 (patch)
treec6387aa87de66d4f0a25c07dee02cb9df931399b
parentca6a2669df43b73fe3f017d4b643cdf22a9dcdb9 (diff)
parent847a74d588f15fca33bc73d0a12e7d12688e5937 (diff)
Merge pull request #29334 from KoBeWi/not_crash_is_true
Fix crash when inherit in rootless unsaved scene
-rw-r--r--editor/editor_node.cpp2
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;