diff options
-rw-r--r-- | source/blender/blenkernel/intern/fmodifier.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/fmodifier.c b/source/blender/blenkernel/intern/fmodifier.c index 6e78d08b508..04c5ddd8ef3 100644 --- a/source/blender/blenkernel/intern/fmodifier.c +++ b/source/blender/blenkernel/intern/fmodifier.c @@ -1389,6 +1389,8 @@ static float eval_fmodifier_influence(FModifier *fcm, float evaltime) * working on the 'global' result of the modified curve, not some localised segment, * so nevaltime gets set to whatever the last time-modifying modifier likes... * - we start from the end of the stack, as only the last one matters for now + * + * Note: *fcu might be NULL */ float evaluate_time_fmodifiers(FModifierStackStorage *storage, ListBase *modifiers, FCurve *fcu, float cvalue, float evaltime) @@ -1399,7 +1401,7 @@ float evaluate_time_fmodifiers(FModifierStackStorage *storage, ListBase *modifie if (ELEM(NULL, modifiers, modifiers->last)) return evaltime; - if (fcu->flag & FCURVE_MOD_OFF) + if (fcu && fcu->flag & FCURVE_MOD_OFF) return evaltime; /* Starting from the end of the stack, calculate the time effects of various stacked modifiers |