summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorajreckof <tbonhoure@ymail.Com>2024-01-13 09:20:38 +0100
committerajreckof <tbonhoure@ymail.Com>2024-01-13 09:20:38 +0100
commitb75fb4603bcd76363254c26e6b81709926513338 (patch)
tree0d26bc233a9629f85fb520f54fbdeb5529c9fc76 /editor
parent26b1fd0d842fa3c2f090ead47e8ea7cd2d6515e1 (diff)
downloadredot-engine-b75fb4603bcd76363254c26e6b81709926513338.tar.gz
Fix icon corrupted when nested array editors are opened before opening main array editor.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_properties_array_dict.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp
index 7f9d80961b..9951e604cc 100644
--- a/editor/editor_properties_array_dict.cpp
+++ b/editor/editor_properties_array_dict.cpp
@@ -407,8 +407,8 @@ void EditorPropertyArray::update_property() {
new_prop->connect(SNAME("object_id_selected"), callable_mp(this, &EditorPropertyArray::_object_id_selected));
new_prop->set_h_size_flags(SIZE_EXPAND_FILL);
new_prop->set_read_only(is_read_only());
- callable_mp((Node *)slot.prop, &Node::add_sibling).call_deferred(new_prop, false);
- callable_mp((Node *)slot.prop, &Node::queue_free).call_deferred();
+ slot.prop->add_sibling(new_prop, false);
+ slot.prop->queue_free();
slot.prop = new_prop;
slot.set_index(idx);
}