Skip to content

Commit

Permalink
Merge pull request godotengine#96620 from ajreckof/fix-clear-button-o…
Browse files Browse the repository at this point in the history
…n-Array-Node]

Fix clear button on `Array[Node]`.
  • Loading branch information
akien-mga committed Sep 9, 2024
2 parents 493f3ed + dee0453 commit a0823ce
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 a0823ce

Please sign in to comment.