summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFireForge <67974470+fire-forge@users.noreply.github.com>2022-06-14 23:23:59 -0500
committerFireForge <67974470+fire-forge@users.noreply.github.com>2022-06-14 23:25:40 -0500
commit4e469886e803793c9c2dc7d402da8e9cf98343f9 (patch)
treeaa7cf4ded2016d80d9e75042b67b30b3ced42e3d
parent15740c37a326813f712d6fbf6c6999076a2f8350 (diff)
Allow folding in sub-inspectors in Array and Dictionary editors
-rw-r--r--editor/editor_properties_array_dict.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp
index f47c6e298b..f1a3fe0c57 100644
--- a/editor/editor_properties_array_dict.cpp
+++ b/editor/editor_properties_array_dict.cpp
@@ -347,6 +347,7 @@ void EditorPropertyArray::update_property() {
prop->set_object_and_property(object.ptr(), prop_name);
prop->set_label(itos(i + offset));
prop->set_selectable(false);
+ prop->set_use_folding(is_using_folding());
prop->connect("property_changed", callable_mp(this, &EditorPropertyArray::_property_changed));
prop->connect("object_id_selected", callable_mp(this, &EditorPropertyArray::_object_id_selected));
prop->set_h_size_flags(SIZE_EXPAND_FILL);
@@ -1006,6 +1007,7 @@ void EditorPropertyDictionary::update_property() {
} else {
EditorPropertyResource *editor = memnew(EditorPropertyResource);
editor->setup(object.ptr(), prop_name, "Resource");
+ editor->set_use_folding(is_using_folding());
prop = editor;
}