diff options
author | Nong Van Tinh <vannongtinh@gmail.com> | 2023-04-28 14:27:10 +0700 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2023-05-12 13:56:49 +0200 |
commit | aa23e6fc5e4ce0ac901296fa900f1b3c5232d8da (patch) | |
tree | 097896c224f9b57d00b18ba1cdcabd2efb27977f /editor/editor_properties_array_dict.cpp | |
parent | 4d7336e70f4a2d284f774958428c082c6c708cb3 (diff) |
Fixes Node arrays appear as Object arrays in the inspector
(cherry picked from commit 3ebf2264aa920b909ea1d2d35d66c36e57118197)
Diffstat (limited to 'editor/editor_properties_array_dict.cpp')
-rw-r--r-- | editor/editor_properties_array_dict.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp index 80ebd32295..e684698e01 100644 --- a/editor/editor_properties_array_dict.cpp +++ b/editor/editor_properties_array_dict.cpp @@ -222,7 +222,7 @@ void EditorPropertyArray::update_property() { String array_type_name = Variant::get_type_name(array_type); if (array_type == Variant::ARRAY && subtype != Variant::NIL) { String type_name; - if (subtype == Variant::OBJECT && subtype_hint == PROPERTY_HINT_RESOURCE_TYPE) { + if (subtype == Variant::OBJECT && (subtype_hint == PROPERTY_HINT_RESOURCE_TYPE || subtype_hint == PROPERTY_HINT_NODE_TYPE)) { type_name = subtype_hint_string; } else { type_name = Variant::get_type_name(subtype); |