Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_lattice.c
| Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | static void deformVerts( | ||||
| float (*vertexCos)[3], | float (*vertexCos)[3], | ||||
| int numVerts) | int numVerts) | ||||
| { | { | ||||
| LatticeModifierData *lmd = (LatticeModifierData *) md; | LatticeModifierData *lmd = (LatticeModifierData *) md; | ||||
| struct Mesh *mesh_src = MOD_deform_mesh_eval_get(ctx->object, NULL, mesh, NULL, numVerts, false, false); | struct Mesh *mesh_src = MOD_deform_mesh_eval_get(ctx->object, NULL, mesh, NULL, numVerts, false, false); | ||||
| MOD_previous_vcos_store(md, vertexCos); /* if next modifier needs original vertices */ | MOD_previous_vcos_store(md, vertexCos); /* if next modifier needs original vertices */ | ||||
| lattice_deform_verts(DEG_get_evaluated_object(ctx->depsgraph, lmd->object), ctx->object, mesh_src, | lattice_deform_verts(lmd->object, ctx->object, mesh_src, | ||||
| vertexCos, numVerts, lmd->name, lmd->strength); | vertexCos, numVerts, lmd->name, lmd->strength); | ||||
| if (!ELEM(mesh_src, NULL, mesh)) { | if (!ELEM(mesh_src, NULL, mesh)) { | ||||
| BKE_id_free(NULL, mesh_src); | BKE_id_free(NULL, mesh_src); | ||||
| } | } | ||||
| } | } | ||||
| static void deformVertsEM( | static void deformVertsEM( | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||