소스 검색

Fixes Node arrays appear as Object arrays in the inspector

(cherry picked from commit 3ebf2264aa920b909ea1d2d35d66c36e57118197)
Nong Van Tinh 2 년 전
부모
커밋
aa23e6fc5e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      editor/editor_properties_array_dict.cpp

+ 1 - 1
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);