diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index fdb4ec170b8..c90222a09f3 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -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;