summaryrefslogtreecommitdiffstats
path: root/editor/editor_properties_array_dict.cpp
diff options
context:
space:
mode:
authorajreckof <66184050+ajreckof@users.noreply.github.com>2023-05-12 16:06:13 +0200
committerajreckof <66184050+ajreckof@users.noreply.github.com>2023-05-12 16:13:35 +0200
commit6f596ee903125d3de3bb91532515b0b3bfa61e25 (patch)
treea16d363242208c40db392ddcb106b90219e7572b /editor/editor_properties_array_dict.cpp
parent1becfea37cd66ad0f13ba5770e5d5627b3fed23f (diff)
downloadredot-engine-6f596ee903125d3de3bb91532515b0b3bfa61e25.tar.gz
fix paste value not updated in dictionaries/arrays
Diffstat (limited to 'editor/editor_properties_array_dict.cpp')
-rw-r--r--editor/editor_properties_array_dict.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp
index 3345f87973..949db3f3be 100644
--- a/editor/editor_properties_array_dict.cpp
+++ b/editor/editor_properties_array_dict.cpp
@@ -218,6 +218,9 @@ void EditorPropertyArray::_property_changed(const String &p_property, Variant p_
array.set(index, p_value);
object->set_array(array);
emit_changed(get_edited_property(), array, "", true);
+ if (!p_changing) {
+ update_property();
+ }
}
void EditorPropertyArray::_change_type(Object *p_button, int p_index) {
@@ -748,6 +751,9 @@ void EditorPropertyDictionary::_property_changed(const String &p_property, Varia
object->set_dict(dict);
emit_changed(get_edited_property(), dict, "", true);
}
+ if (!p_changing) {
+ update_property();
+ }
}
void EditorPropertyDictionary::_change_type(Object *p_button, int p_index) {