Skip to content

Commit a0823ce

Browse files
committed
Merge pull request #96620 from ajreckof/fix-clear-button-on-Array-Node]
Fix clear button on `Array[Node]`.
2 parents 493f3ed + dee0453 commit a0823ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

editor/editor_properties.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2703,7 +2703,11 @@ void EditorPropertyNodePath::_update_menu() {
27032703
void EditorPropertyNodePath::_menu_option(int p_idx) {
27042704
switch (p_idx) {
27052705
case ACTION_CLEAR: {
2706-
emit_changed(get_edited_property(), NodePath());
2706+
if (editing_node) {
2707+
emit_changed(get_edited_property(), Variant());
2708+
} else {
2709+
emit_changed(get_edited_property(), NodePath());
2710+
}
27072711
update_property();
27082712
} break;
27092713

0 commit comments

Comments
 (0)