Skip to content

Commit dee0453

Browse files
committed
fix clear button on Array[Node]
1 parent 835808e commit dee0453

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)