Skip to content

Commit

Permalink
fix clear button on Array[Node]
Browse files Browse the repository at this point in the history
  • Loading branch information
ajreckof committed Sep 6, 2024
1 parent 835808e commit dee0453
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/editor_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit dee0453

Please sign in to comment.