summaryrefslogtreecommitdiffstats
path: root/tools/editor/editor_node.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-08-29 22:59:25 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-08-29 22:59:25 -0300
commit1bad27e1f8460424fa4476fe65209aa250d43115 (patch)
treebdd6d510cef95b5a159d4e7b7981bb3be3458711 /tools/editor/editor_node.cpp
parentb4acd18f3245d0e8c928b1f275847473de8a2270 (diff)
downloadredot-engine-1bad27e1f8460424fa4476fe65209aa250d43115.tar.gz
-Properly keep animation editor and viewport state while switching scene tabs
Diffstat (limited to 'tools/editor/editor_node.cpp')
-rw-r--r--tools/editor/editor_node.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp
index a82fdd5b77..9b6da314d6 100644
--- a/tools/editor/editor_node.cpp
+++ b/tools/editor/editor_node.cpp
@@ -1765,6 +1765,7 @@ void EditorNode::_menu_option_confirm(int p_option,bool p_confirmed) {
int idx = editor_data.add_edited_scene(-1);
_scene_tab_changed(idx);
+ editor_data.clear_editor_states();
//_cleanup_scene();