summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNong Van Tinh <vannongtinh@gmail.com>2023-04-28 14:27:10 +0700
committerRĂ©mi Verschelde <rverschelde@gmail.com>2023-05-12 13:56:49 +0200
commitaa23e6fc5e4ce0ac901296fa900f1b3c5232d8da (patch)
tree097896c224f9b57d00b18ba1cdcabd2efb27977f
parent4d7336e70f4a2d284f774958428c082c6c708cb3 (diff)
Fixes Node arrays appear as Object arrays in the inspector
(cherry picked from commit 3ebf2264aa920b909ea1d2d35d66c36e57118197)
-rw-r--r--editor/editor_properties_array_dict.cpp2
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);