fix clear button on Array[Node]

(cherry picked from commit dee0453b57)
This commit is contained in:
ajreckof 2024-09-05 21:00:59 +02:00 committed by Rémi Verschelde
parent 0b815cbb99
commit cab91cf8fb
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -2778,7 +2778,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;