summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorajreckof <tbonhoure@ymail.com>2024-05-21 22:57:32 +0200
committerajreckof <tbonhoure@ymail.com>2024-05-21 22:57:32 +0200
commit0e8abb51320db62408022ba171518156d1d749f6 (patch)
tree90d4f64100309b08d7545b452bfe779334fa97c6
parentaaa4560729bf0161deb71789b47eba5623893845 (diff)
downloadredot-engine-0e8abb51320db62408022ba171518156d1d749f6.tar.gz
Fix array variable with`@export_multiline` not registering changes.
-rw-r--r--editor/editor_properties_array_dict.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp
index ca1070d7f3..5df3ff0967 100644
--- a/editor/editor_properties_array_dict.cpp
+++ b/editor/editor_properties_array_dict.cpp
@@ -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) {