diff --git a/editor/animation/animation_bezier_editor.cpp b/editor/animation/animation_bezier_editor.cpp index 17670ad5f63..ed84a319248 100644 --- a/editor/animation/animation_bezier_editor.cpp +++ b/editor/animation/animation_bezier_editor.cpp @@ -918,6 +918,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;