tangent-opensource / blender

Tangent Animation's Blender Fork | More information ->
https://github.com/tangent-devops/tangent-blender/wiki
Other
9 stars 6 forks source link

Added a bound check for vertex deform groups on export #3

Closed tangent-trevor closed 3 years ago

tangent-trevor commented 3 years ago

This should solve the crash that happened when the MDeformWeight->def_nr was greater than the number of bDeformGroup structs associated with the object. I was unable to determine the scenario that created these conditions but this logic should be identical to how their internal code handles it (see BKE_defvert_find_index).