Fix #84848: Specific Rig Crashes blender when going into pose mode #119081

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:84848 into blender-v4.1-release 2024-03-05 13:15:28 +01:00

View File

@ -144,6 +144,14 @@ static void motion_path_cache(OVERLAY_Data *vedata,
if (len == 0) {
return;
}
/* Avoid 0 size allocations. Current code to calculate motion paths should
* sanitize this already [see animviz_verify_motionpaths()], we might however
* encounter an older file where this was still possible. */
if (mpath->length == 0) {
return;
}
int start_index = sfra - mpath->start_frame;
float camera_matrix[4][4];