From dee0453b5774cc411d2305aa9210c4589e89f0b2 Mon Sep 17 00:00:00 2001 From: ajreckof Date: Thu, 5 Sep 2024 21:00:59 +0200 Subject: [PATCH] fix clear button on Array[Node] --- editor/editor_properties.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 19a4165041d..07d37630cc8 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2703,7 +2703,11 @@ void EditorPropertyNodePath::_update_menu() { void EditorPropertyNodePath::_menu_option(int p_idx) { switch (p_idx) { case ACTION_CLEAR: { - emit_changed(get_edited_property(), NodePath()); + if (editing_node) { + emit_changed(get_edited_property(), Variant()); + } else { + emit_changed(get_edited_property(), NodePath()); + } update_property(); } break;