fix animation bezier crash on undo
This commit is contained in:
parent
9425535602
commit
e97428c96b
@ -872,14 +872,14 @@ void AnimationBezierTrackEdit::_change_selected_keys_handle_mode(Animation::Hand
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AnimationBezierTrackEdit::_clear_selection_for_anim(const Ref<Animation> &p_anim) {
|
void AnimationBezierTrackEdit::_clear_selection_for_anim(const Ref<Animation> &p_anim) {
|
||||||
if (!(animation == p_anim)) {
|
if (!(animation == p_anim) || !is_visible()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_clear_selection();
|
_clear_selection();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimationBezierTrackEdit::_select_at_anim(const Ref<Animation> &p_anim, int p_track, real_t p_pos, bool p_single) {
|
void AnimationBezierTrackEdit::_select_at_anim(const Ref<Animation> &p_anim, int p_track, real_t p_pos, bool p_single) {
|
||||||
if (!(animation == p_anim)) {
|
if (!(animation == p_anim) || !is_visible()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user