Fix T56455: [2.8] Crash when projecting skinwrap curve/path.
Shrinkwrap is not only a Mesh modifier...
This commit is contained in:
parent
a6b65c75cd
commit
4cde92303f
Notes:
blender-bot
2023-02-14 08:35:51 +01:00
Referenced by commit 5977ed3470
, Fix T68489: Shrinkwrap modifier with project not working for curves
Referenced by issue #68489, Shrinkwrap modifier with proyect not working in curves
Referenced by issue #56455, [2.8] Crash when projecting skinwrap curve/path
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue