diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-09 13:51:03 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-09 13:51:53 +0300 |
commit | 74234688dede52bbe5b37741042dbc1bed9611bf (patch) | |
tree | c9a235fb86f8011280745c510087879182e89a67 /source/blender/modifiers/intern | |
parent | aab5ac25f2c2e6fbc50f9fb352e71ef0ae0ba2f1 (diff) |
Modifier stack: ShrinkWrap: move to mesh-based BVHTree code.
Now only subsurf still needs some DM...
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_shrinkwrap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_shrinkwrap.c b/source/blender/modifiers/intern/MOD_shrinkwrap.c index 2d57b9d19d5..c3ce036847f 100644 --- a/source/blender/modifiers/intern/MOD_shrinkwrap.c +++ b/source/blender/modifiers/intern/MOD_shrinkwrap.c @@ -102,8 +102,6 @@ static void deformVerts(ModifierData *md, const ModifierEvalContext *ctx, float (*vertexCos)[3], int numVerts) { - const bool forRender = (ctx->flag & MOD_APPLY_RENDER) != 0; - Mesh *mesh_src = mesh; if (mesh_src == NULL) { @@ -112,7 +110,7 @@ static void deformVerts(ModifierData *md, const ModifierEvalContext *ctx, BLI_assert(mesh_src->totvert == numVerts); - shrinkwrapModifier_deform((ShrinkwrapModifierData *)md, ctx->object, mesh_src, vertexCos, numVerts, forRender); + shrinkwrapModifier_deform((ShrinkwrapModifierData *)md, ctx->object, mesh_src, vertexCos, numVerts, ctx); } static void deformVertsEM(ModifierData *md, const ModifierEvalContext *ctx, @@ -127,7 +125,7 @@ static void deformVertsEM(ModifierData *md, const ModifierEvalContext *ctx, BLI_assert(mesh_src->totvert == numVerts); - shrinkwrapModifier_deform((ShrinkwrapModifierData *)md, ctx->object, mesh_src, vertexCos, numVerts, false); + shrinkwrapModifier_deform((ShrinkwrapModifierData *)md, ctx->object, mesh_src, vertexCos, numVerts, ctx); if (!mesh) { BKE_id_free(NULL, mesh_src); |