Merge pull request #62986 from fire-forge/array-object
This commit is contained in:
commit
4dc86f3b5a
|
@ -211,7 +211,14 @@ void EditorPropertyArray::update_property() {
|
|||
|
||||
String array_type_name = Variant::get_type_name(array_type);
|
||||
if (array_type == Variant::ARRAY && subtype != Variant::NIL) {
|
||||
array_type_name = vformat("%s[%s]", array_type_name, Variant::get_type_name(subtype));
|
||||
String type_name;
|
||||
if (subtype == Variant::OBJECT && subtype_hint == PROPERTY_HINT_RESOURCE_TYPE) {
|
||||
type_name = subtype_hint_string;
|
||||
} else {
|
||||
type_name = Variant::get_type_name(subtype);
|
||||
}
|
||||
|
||||
array_type_name = vformat("%s[%s]", array_type_name, type_name);
|
||||
}
|
||||
|
||||
if (array.get_type() == Variant::NIL) {
|
||||
|
|
Loading…
Reference in New Issue