From bae6b1ca144a3a4e74ebdcacb55c3c4abfda3e90 Mon Sep 17 00:00:00 2001 From: MatheusMDX <44306054+matheusmdx@users.noreply.github.com> Date: Sun, 1 Mar 2026 19:35:16 -0300 Subject: [PATCH] Deselect bezier keyframes when animation switch (cherry picked from commit 14ebaafa6df6a3e8fe06ddf03dffca583c940329) --- editor/animation/animation_bezier_editor.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;