Blender Git Loki
Git Commits -> Revision ede994c
Revision ede994c by Bastien Montagne (master) November 26, 2018, 20:07 (GMT) |
MOD_curve: do not compute mesh when not needed. This modifier only uses mesh to get vgroup, which is only needed in case modified object is indeed a mesh! Building a mesh from curve here is not only useless and time-consuming, it will also easily fail the assert about same number of vertices! Also, use MOD_get_vgroup() helper in modifier code itself and pass reluting MDeformVert & index to BKE_curve's curve_deform_verts(), this is simpler and avoids duplicating vgroup handling code. Also fixes crash when used on lattice. Related to T57972. |
Commit Details:
Full Hash: ede994c3140b92076a3f398b6889e02231461150
Parent Commit: 8cd5edf
Lines Changed: +16, -31