Make remote inspector groups not foldable
This commit is contained in:
parent
4363ae34fa
commit
a92ed50777
1 changed files with 2 additions and 4 deletions
|
@ -2317,7 +2317,7 @@ void EditorNode::_edit_current(bool p_skip_foreign) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the use folding setting and state.
|
// 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) {
|
if (InspectorDock::get_inspector_singleton()->is_using_folding() == disable_folding) {
|
||||||
InspectorDock::get_inspector_singleton()->set_use_folding(!disable_folding, false);
|
InspectorDock::get_inspector_singleton()->set_use_folding(!disable_folding, false);
|
||||||
}
|
}
|
||||||
|
@ -2393,9 +2393,7 @@ void EditorNode::_edit_current(bool p_skip_foreign) {
|
||||||
} else {
|
} else {
|
||||||
Node *selected_node = nullptr;
|
Node *selected_node = nullptr;
|
||||||
|
|
||||||
if (current_obj->is_class("EditorDebuggerRemoteObject")) {
|
if (current_obj->is_class("MultiNodeEdit")) {
|
||||||
disable_folding = true;
|
|
||||||
} else if (current_obj->is_class("MultiNodeEdit")) {
|
|
||||||
Node *scene = get_edited_scene();
|
Node *scene = get_edited_scene();
|
||||||
if (scene) {
|
if (scene) {
|
||||||
MultiNodeEdit *multi_node_edit = Object::cast_to<MultiNodeEdit>(current_obj);
|
MultiNodeEdit *multi_node_edit = Object::cast_to<MultiNodeEdit>(current_obj);
|
||||||
|
|
Loading…
Add table
Reference in a new issue