diff --git a/editor/animation/animation_bezier_editor.cpp b/editor/animation/animation_bezier_editor.cpp index 65bb2647529..7ec4201ca94 100644 --- a/editor/animation/animation_bezier_editor.cpp +++ b/editor/animation/animation_bezier_editor.cpp @@ -910,6 +910,9 @@ Ref AnimationBezierTrackEdit::get_animation() const { } void AnimationBezierTrackEdit::set_animation_and_track(const Ref &p_animation, int p_track, bool p_read_only) { + if (p_animation != animation) { + selection.clear(); + } animation = p_animation; read_only = p_read_only; selected_track = p_track;