1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Merge pull request #96620 from ajreckof/fix-clear-button-on-Array-Node]

Fix clear button on `Array[Node]`.
This commit is contained in:
Rémi Verschelde
2024-09-09 17:51:46 +02:00

View File

@@ -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;