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.
This commit is contained in:
Wayde Moss 2022-04-15 13:44:39 -04:00
parent 089e701191
commit ad324316ce
1 changed files with 7 additions and 2 deletions

View File

@ -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;
}