From a92ed5077769339cec677f3cfdeebbb91c5ac1f3 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 31 Oct 2023 17:29:53 +0100 Subject: [PATCH] Make remote inspector groups not foldable --- editor/editor_node.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index c1a5ec8e11c..6d28b9abc84 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2317,7 +2317,7 @@ void EditorNode::_edit_current(bool p_skip_foreign) { } // Update the use folding setting and state. - bool disable_folding = bool(EDITOR_GET("interface/inspector/disable_folding")); + bool disable_folding = bool(EDITOR_GET("interface/inspector/disable_folding")) || current_obj->is_class("EditorDebuggerRemoteObject"); if (InspectorDock::get_inspector_singleton()->is_using_folding() == disable_folding) { InspectorDock::get_inspector_singleton()->set_use_folding(!disable_folding, false); } @@ -2393,9 +2393,7 @@ void EditorNode::_edit_current(bool p_skip_foreign) { } else { Node *selected_node = nullptr; - if (current_obj->is_class("EditorDebuggerRemoteObject")) { - disable_folding = true; - } else if (current_obj->is_class("MultiNodeEdit")) { + if (current_obj->is_class("MultiNodeEdit")) { Node *scene = get_edited_scene(); if (scene) { MultiNodeEdit *multi_node_edit = Object::cast_to(current_obj);