From aa23e6fc5e4ce0ac901296fa900f1b3c5232d8da Mon Sep 17 00:00:00 2001 From: Nong Van Tinh Date: Fri, 28 Apr 2023 14:27:10 +0700 Subject: Fixes Node arrays appear as Object arrays in the inspector (cherry picked from commit 3ebf2264aa920b909ea1d2d35d66c36e57118197) --- editor/editor_properties_array_dict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3