diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp index 0a9d35fe644..52bdc182b28 100644 --- a/editor/editor_properties_array_dict.cpp +++ b/editor/editor_properties_array_dict.cpp @@ -202,22 +202,16 @@ void EditorPropertyArray::_property_changed(const String &p_property, Variant p_ p_value = Variant(); // `EditorResourcePicker` resets to `Ref()`. See GH-82716. } - int index; - if (p_property.begins_with("metadata/")) { - index = p_property.get_slice("/", 2).to_int(); - } else { - index = p_property.get_slice("/", 1).to_int(); - } + int index = p_property.get_slice("/", 1).to_int(); Variant array = object->get_array().duplicate(); array.set(index, p_value); - object->set_array(array); - emit_changed(get_edited_property(), array, "", true); + emit_changed(get_edited_property(), array, p_name, p_changing); } -void EditorPropertyArray::_change_type(Object *p_button, int p_index) { +void EditorPropertyArray::_change_type(Object *p_button, int p_slot_index) { Button *button = Object::cast_to