From ad324316ce8d454aa26720ec601b85d22fa58bf5 Mon Sep 17 00:00:00 2001 From: Wayde Moss Date: Fri, 15 Apr 2022 13:44:39 -0400 Subject: [PATCH] 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. --- source/blender/editors/animation/keyframing.c | 9 +++++++-- 1 file 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; }