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

1 Commits

Author SHA1 Message Date
Philipp Oeser 196af9eb2b Fix #84848: Specific Rig Crashes blender when going into pose mode
The armature reported had two bones with a `bMotionPath` but its lengths
are zero (which causes trouble in `motion_path_cache` drawing code due
to 0 allocations).

Not exactly sure how we got there, something like
`animviz_verify_motionpaths` should take care of this already in current
code, but this might be from a time where there were not enough sanity
checks.

So now early out in `motion_path_cache` if we encounter such a
"corrupted" motion path.
2024-03-05 11:18:12 +01:00