From 65b6b140b6d8da2dea67ef53c192339a705e58bf Mon Sep 17 00:00:00 2001 From: Fazil Babu Date: Sun, 30 Jan 2022 00:02:36 +0530 Subject: [PATCH] Inspector retains content when detached and when docked --- editor/editor_node.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index a1f259c8645..bc55adee998 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -4222,6 +4222,8 @@ void EditorNode::_dock_floating_close_request(Control *p_control) { _update_dock_containers(); floating_docks.erase(p_control); + + _edit_current(); } void EditorNode::_dock_make_float() { @@ -4264,6 +4266,8 @@ void EditorNode::_dock_make_float() { _update_dock_containers(); floating_docks.push_back(dock); + + _edit_current(); } void EditorNode::_update_dock_containers() {