diff options
author | Wayde Moss <wbmoss_dev@yahoo.com> | 2022-04-15 20:44:39 +0300 |
---|---|---|
committer | Wayde Moss <wbmoss_dev@yahoo.com> | 2022-04-15 20:45:00 +0300 |
commit | ad324316ce8d454aa26720ec601b85d22fa58bf5 (patch) | |
tree | 630eeb6dea157bde03692cb8b07cb02a0491d694 /source | |
parent | 089e7011913e35fe25be2d4b5f0f6e48f253933e (diff) |
Fix: Missing Null Check
Introduced by my recent commit: {rB3acbe2d1e933}
Lead to crash when insert_keyframe_direct() was called. Keyframing
crashed for NLA special properties (influence, animated_time),
driven properties, etc.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index d42efcd81e5..5b742ddf272 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -1206,8 +1206,13 @@ static float *get_keyframe_values(ReportList *reports, anim_eval_context, r_force_all, *r_successful_remaps); - get_keyframe_values_create_reports( - reports, ptr, prop, index, *r_count, *r_force_all, *r_successful_remaps); + get_keyframe_values_create_reports(reports, + ptr, + prop, + index, + *r_count, + r_force_all ? *r_force_all : false, + *r_successful_remaps); return values; } |