diff options
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_shrinkwrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_shrinkwrap.c b/source/blender/modifiers/intern/MOD_shrinkwrap.c index 5497673a52d..c54fbcf7f87 100644 --- a/source/blender/modifiers/intern/MOD_shrinkwrap.c +++ b/source/blender/modifiers/intern/MOD_shrinkwrap.c @@ -108,11 +108,11 @@ static void deformVerts( struct Scene *scene = DEG_get_evaluated_scene(ctx->depsgraph); Mesh *mesh_src = mesh; - if (mesh_src == NULL) { + if (mesh_src == NULL && ctx->object->type == OB_MESH) { mesh_src = ctx->object->data; } - BLI_assert(mesh_src->totvert == numVerts); + BLI_assert(mesh_src == NULL || mesh_src->totvert == numVerts); shrinkwrapModifier_deform((ShrinkwrapModifierData *)md, scene, ctx->object, mesh_src, vertexCos, numVerts); } |