Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_curve.c
| Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | static void deformVerts( | ||||
| } | } | ||||
| struct MDeformVert *dvert = NULL; | struct MDeformVert *dvert = NULL; | ||||
| int defgrp_index = -1; | int defgrp_index = -1; | ||||
| MOD_get_vgroup(ctx->object, mesh_src, cmd->name, &dvert, &defgrp_index); | MOD_get_vgroup(ctx->object, mesh_src, cmd->name, &dvert, &defgrp_index); | ||||
| /* silly that defaxis and curve_deform_verts are off by 1 | /* silly that defaxis and curve_deform_verts are off by 1 | ||||
| * but leave for now to save having to call do_versions */ | * but leave for now to save having to call do_versions */ | ||||
| curve_deform_verts(DEG_get_evaluated_object(ctx->depsgraph, cmd->object), ctx->object, | curve_deform_verts(cmd->object, ctx->object, | ||||
| vertexCos, numVerts, dvert, defgrp_index, cmd->defaxis - 1); | vertexCos, numVerts, dvert, defgrp_index, cmd->defaxis - 1); | ||||
| 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 52 Lines • Show Last 20 Lines | |||||