diff options
| author | Dmitry Koteroff | 2017-11-28 16:49:03 +0300 |
|---|---|---|
| committer | Dmitry Koteroff | 2017-11-28 16:53:40 +0300 |
| commit | 45c5a865c22a590913cf7e3ede2d53c85ab69116 (patch) | |
| tree | 554ab84507790e374c904f0e397a179748c5021c /editor/property_editor.cpp | |
| parent | 04145aade49ae09788f617ffb8df509455bbc87e (diff) | |
| download | godot-45c5a865c22a590913cf7e3ede2d53c85ab69116.tar.gz godot-45c5a865c22a590913cf7e3ede2d53c85ab69116.tar.zst godot-45c5a865c22a590913cf7e3ede2d53c85ab69116.zip | |
Small fixes to #13233
Diffstat (limited to 'editor/property_editor.cpp')
| -rw-r--r-- | editor/property_editor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index d383e54f0..d573a44cd 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -2665,12 +2665,12 @@ TreeItem *PropertyEditor::get_parent_node(String p_path, HashMap<String, TreeIte item->set_editable(1, false); item->set_selectable(1, subsection_selectable); - if (use_folding) { + if (use_folding || folding_behaviour != FB_UNDEFINED) { // Even if you disabled folding (expand all by default), you still can collapse all manually. if (!obj->editor_is_section_unfolded(p_path)) { updating_folding = true; if (folding_behaviour == FB_COLLAPSEALL) item->set_collapsed(true); - else if (folding_behaviour == FB_EXPANDALL) + else if (folding_behaviour == FB_EXPANDALL || is_expandall_enabled) item->set_collapsed(false); else item->set_collapsed(true); @@ -4310,6 +4310,7 @@ PropertyEditor::PropertyEditor() { property_selectable = false; show_type_icons = false; // maybe one day will return. folding_behaviour = FB_UNDEFINED; + is_expandall_enabled = bool(EDITOR_DEF("interface/editor/expand_all_properties", true)); } PropertyEditor::~PropertyEditor() { |
