mirror of
https://github.com/godotengine/godot.git
synced 2026-05-12 22:35:35 +00:00
Deselect bezier keyframes when animation switch
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user