Skip to content

Commit

Permalink
Merge pull request #92225 from ajreckof/fix-multiline-array
Browse files Browse the repository at this point in the history
Fix array variable with `@export_multiline` not registering changes.
  • Loading branch information
akien-mga authored May 29, 2024
2 parents a6ef250 + 0e8abb5 commit 2551986
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/editor_properties_array_dict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ void EditorPropertyArray::_property_changed(const String &p_property, Variant p_
Variant array = object->get_array().duplicate();
array.set(index, p_value);
emit_changed(get_edited_property(), array, p_name, p_changing);
if (p_changing) {
object->set_array(array);
}
}

void EditorPropertyArray::_change_type(Object *p_button, int p_slot_index) {
Expand Down

0 comments on commit 2551986

Please sign in to comment.