Godot Engine – Multi-platform 2D and 3D game engine
Fix broken EditorPropertyArray type changing and removal
AegisTTN4a029f14435d
diff --git a/editor/inspector/editor_properties_array_dict.cpp b/editor/inspector/editor_properties_array_dict.cppindex ff86be8da79..721566ff37d 100644--- a/editor/inspector/editor_properties_array_dict.cpp+++ b/editor/inspector/editor_properties_array_dict.cpp@@ -576,7 +576,7 @@ void EditorPropertyArray::update_property() {slot.prop = new_prop;slot.set_index(idx);}- if (slot.index == changing_type_index) {+ if (slot.index == changing_type_index && (!change_type || !change_type->is_visible())) {callable_mp(slot.prop, &EditorProperty::grab_focus).call_deferred(0);changing_type_index = EditorPropertyArrayObject::NOT_CHANGING_TYPE;}