Ver código fonte

Inspector retains content when detached and when docked

Fazil Babu 3 anos atrás
pai
commit
65b6b140b6
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      editor/editor_node.cpp

+ 4 - 0
editor/editor_node.cpp

@@ -4222,6 +4222,8 @@ void EditorNode::_dock_floating_close_request(Control *p_control) {
 	_update_dock_containers();
 	_update_dock_containers();
 
 
 	floating_docks.erase(p_control);
 	floating_docks.erase(p_control);
+
+	_edit_current();
 }
 }
 
 
 void EditorNode::_dock_make_float() {
 void EditorNode::_dock_make_float() {
@@ -4264,6 +4266,8 @@ void EditorNode::_dock_make_float() {
 	_update_dock_containers();
 	_update_dock_containers();
 
 
 	floating_docks.push_back(dock);
 	floating_docks.push_back(dock);
+
+	_edit_current();
 }
 }
 
 
 void EditorNode::_update_dock_containers() {
 void EditorNode::_update_dock_containers() {