diff options
| author | Juan Linietsky | 2017-12-06 19:06:18 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-12-06 19:07:17 -0300 |
| commit | 86fcc39fa94da2c693d7975ccab2401c5c5f377b (patch) | |
| tree | 513d477ff6fa74ab76eef94f59b7c57d41b596ff /editor/editor_node.cpp | |
| parent | 820cdb46fd494ad0dece6efbb0e81dc57458bae3 (diff) | |
| download | godot-86fcc39fa94da2c693d7975ccab2401c5c5f377b.tar.gz godot-86fcc39fa94da2c693d7975ccab2401c5c5f377b.tar.zst godot-86fcc39fa94da2c693d7975ccab2401c5c5f377b.zip | |
Fix and rewrite folding logic, closes #14005, closes #13421
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index d6c8d6519..31ed86d05 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1394,11 +1394,13 @@ void EditorNode::_property_editor_back() { } void EditorNode::_menu_collapseall() { - property_editor->collapse_all_parent_nodes(); + + property_editor->collapse_all_folding(); } void EditorNode::_menu_expandall() { - property_editor->expand_all_parent_nodes(); + + property_editor->expand_all_folding(); } void EditorNode::_save_default_environment() { @@ -5444,7 +5446,7 @@ EditorNode::EditorNode() { property_editor->set_use_doc_hints(true); property_editor->set_hide_script(false); property_editor->set_enable_capitalize_paths(bool(EDITOR_DEF("interface/editor/capitalize_properties", true))); - property_editor->set_use_folding(bool(EDITOR_DEF("interface/editor/expand_all_properties", false)) == false); + property_editor->set_use_folding(!bool(EDITOR_DEF("interface/editor/disable_inspector_folding", false))); property_editor->hide_top_label(); property_editor->register_text_enter(search_box); |
