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-08-23 22:49:14 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-08-23 22:49:14 +0300
commit4cde92303f3db9286b38d65d835db3e358b595f4 (patch)
treee3e057ad5ff686bc8d0ab5064ba769c1f9c0edd8 /source/blender/modifiers
parenta6b65c75cd2d08afb0bc9543e0528ac583b720a3 (diff)
Fix T56455: [2.8] Crash when projecting skinwrap curve/path.
Shrinkwrap is not only a Mesh modifier...
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_shrinkwrap.c4
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);
}