diff options
| author | emild <emil.dobetsberger@gmail.com> | 2024-06-22 23:43:18 +0200 |
|---|---|---|
| committer | emild <emil.dobetsberger@gmail.com> | 2024-07-02 10:02:57 +0200 |
| commit | e97428c96b3d1f6b373f26a064f463891eeead5b (patch) | |
| tree | 814957eb32713fc4d319eb13a15ebdd8bdda79ff | |
| parent | 9425535602a526a1b021838a7d021a5d75a62574 (diff) | |
| download | redot-engine-e97428c96b3d1f6b373f26a064f463891eeead5b.tar.gz | |
fix animation bezier crash on undo
| -rw-r--r-- | editor/animation_bezier_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp index d192ce0356..ad7598202f 100644 --- a/editor/animation_bezier_editor.cpp +++ b/editor/animation_bezier_editor.cpp @@ -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; } |
