Merge pull request #76530 from nongvantinh/fix-75982

Fixes Node arrays appear as Object arrays in the inspector
This commit is contained in:
Rémi Verschelde 2023-05-12 12:46:23 +02:00
commit c90654b565
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -255,7 +255,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);