diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2017-12-10 12:48:03 +0000 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2017-12-10 12:48:03 +0000 |
commit | bdde82169db96ac90075be086de4939f0651c09b (patch) | |
tree | 6bdfa8b3dd5fdb190abc5cfe03949b5d2c86f689 | |
parent | 7d735da6aa86861c4d0ba81ec769d3b6d7dad3c0 (diff) |
Fixed close current scene closing the wrong scene, issue 13844
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 908bc468a0..27ed53bb42 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1884,7 +1884,10 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) { save_confirmation->set_text(vformat(TTR("Save changes to '%s' before closing?"), scene_filename != "" ? scene_filename : "unsaved scene")); save_confirmation->popup_centered_minsize(); break; + } else { + tab_closing = editor_data.get_edited_scene(); } + } // fallthrough case SCENE_TAB_CLOSE: case FILE_SAVE_SCENE: { |