summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-08-18 19:51:17 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-08-18 19:51:17 -0300
commitfc89cf90b268dfb25e039ae248e3305bb593be41 (patch)
tree54db8cea93d99057f726d1ab2965f4cfc4063a08 /editor
parent2cb19a53fdbf4ad04dc756b98adc671bb412d3e3 (diff)
Inspector re-edits edited object when dock moves, closes #9287
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 242648d4a9..1017aabc9d 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -3939,6 +3939,7 @@ void EditorNode::_dock_select_input(const Ref<InputEvent> &p_input) {
splits[i]->hide();
}
+ _edit_current();
_save_docks();
}
}
@@ -3966,6 +3967,7 @@ void EditorNode::_dock_move_left() {
dock_slot[dock_popup_selected]->move_child(current, prev->get_index());
dock_slot[dock_popup_selected]->set_current_tab(dock_slot[dock_popup_selected]->get_current_tab() - 1);
dock_select->update();
+ _edit_current();
_save_docks();
}
@@ -3978,6 +3980,7 @@ void EditorNode::_dock_move_right() {
dock_slot[dock_popup_selected]->move_child(next, current->get_index());
dock_slot[dock_popup_selected]->set_current_tab(dock_slot[dock_popup_selected]->get_current_tab() + 1);
dock_select->update();
+ _edit_current();
_save_docks();
}