diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-07-29 10:22:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-07-29 10:22:12 +0300 |
commit | a38759f017fb7e975e56f7121113cb8c8aab843b (patch) | |
tree | d2ed9fa0c10f238eeeb9c637512ee983e67eb68d | |
parent | 314891b1c53fa1d037cc181c504635c075ba3d94 (diff) |
Fix T67863: Crash pressing Ctrl +/- in gpencil action editor
-rw-r--r-- | source/blender/editors/space_action/action_select.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c index 7cc222ea529..9e2634b183a 100644 --- a/source/blender/editors/space_action/action_select.c +++ b/source/blender/editors/space_action/action_select.c @@ -1199,9 +1199,14 @@ static void select_moreless_action_keys(bAnimContext *ac, short mode) ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype); for (ale = anim_data.first; ale; ale = ale->next) { - FCurve *fcu = (FCurve *)ale->key_data; + + /* TODO: other types. */ + if (ale->datatype != ALE_FCURVE) { + continue; + } /* only continue if F-Curve has keyframes */ + FCurve *fcu = (FCurve *)ale->key_data; if (fcu->bezt == NULL) { continue; } |