Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-11-26 13:46:20 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-11-26 23:07:50 +0300
commitede994c3140b92076a3f398b6889e02231461150 (patch)
tree77e4f2c870576f09e3d9d76dbe06615288d7c509 /source/blender/blenkernel/intern/shrinkwrap.c
parent8cd5edf8508a00df9791f7b0795b23c74e00c449 (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/shrinkwrap.c')
0 files changed, 0 insertions, 0 deletions