Fix T54319: Crash after double-clicking baked F-curve

This commit is contained in:
Sergey Sharybin 2018-03-14 15:57:14 +01:00
parent 342593f124
commit d0055155e8
Notes: blender-bot 2023-02-14 07:36:17 +01:00
Referenced by issue #54319, Crash after doubleclicking F-curve
1 changed files with 1 additions and 1 deletions

View File

@ -3085,7 +3085,7 @@ static bool select_anim_channel_keys(bAnimContext *ac, int channel_index, bool e
for (ale = anim_data.first; ale; ale = ale->next) {
FCurve *fcu_inner = (FCurve *)ale->key_data;
if (fcu_inner) {
if (fcu_inner != NULL && fcu_inner->bezt != NULL) {
for (i = 0, bezt = fcu_inner->bezt; i < fcu_inner->totvert; i++, bezt++) {
bezt->f2 = bezt->f1 = bezt->f3 = 0;
}