Merge pull request #93492 from CookieBadger/animation-bezier-undo-crash-fix
Fix animation Bezier editor crash when using undo after deleting AnimationPlayer
This commit is contained in:
commit
a4a4a525e2
1 changed files with 2 additions and 2 deletions
|
@ -872,14 +872,14 @@ void AnimationBezierTrackEdit::_change_selected_keys_handle_mode(Animation::Hand
|
|||
}
|
||||
|
||||
void AnimationBezierTrackEdit::_clear_selection_for_anim(const Ref<Animation> &p_anim) {
|
||||
if (!(animation == p_anim)) {
|
||||
if (!(animation == p_anim) || !is_visible()) {
|
||||
return;
|
||||
}
|
||||
_clear_selection();
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue