Deselect bezier keyframes when animation switch

This commit is contained in:
MatheusMDX
2026-03-01 19:35:16 -03:00
parent 1aaea38e7f
commit 14ebaafa6d
@@ -910,6 +910,9 @@ Ref<Animation> AnimationBezierTrackEdit::get_animation() const {
}
void AnimationBezierTrackEdit::set_animation_and_track(const Ref<Animation> &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;