Blender Git Commit Log

Git Commits -> Revision 15add11

Revision 15add11 by Bastien Montagne (master)
November 26, 2018, 20:07 (GMT)
MOD_shrinkwrap: 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!

Note that surface_project and subsurf option also need more work at some
point, but this is probably not that urgent for now.

Also, use MOD_get_vgroup() helper in modifier code itself and pass
resulting MDeformVert & index to BKE_shrinkwrap's `shrinkwrapModifier_deform()`,
this is simpler and avoids duplicating vgroup handling code.

Related to T57972.

Commit Details:

Full Hash: 15add11595fcefae604ec6980bcd840e3705232a
Parent Commit: ede994c
Lines Changed: +28, -24

3 Modified Paths:

/source/blender/blenkernel/BKE_shrinkwrap.h (+3, -2) (Diff)
/source/blender/blenkernel/intern/shrinkwrap.c (+4, -17) (Diff)
/source/blender/modifiers/intern/MOD_shrinkwrap.c (+21, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021