Removed most calls to modifier_deformVerts_DM_deprecated()
None of those calls actually passed a DerivedMesh.
This commit is contained in:
@@ -404,7 +404,7 @@ void BKE_crazyspace_build_sculpt(struct Depsgraph *depsgraph, Scene *scene, Obje
|
||||
if ((mti->deformMatrices || mti->deformMatrices_DM) && !deformed)
|
||||
continue;
|
||||
|
||||
modifier_deformVerts_DM_deprecated(md, &mectx, NULL, deformedVerts, me->totvert);
|
||||
modifier_deformVerts(md, &mectx, NULL, deformedVerts, me->totvert);
|
||||
deformed = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -864,7 +864,7 @@ static void curve_calc_modifiers_pre(
|
||||
deformedVerts = BKE_curve_nurbs_vertexCos_get(nurb, &numVerts);
|
||||
}
|
||||
|
||||
modifier_deformVerts_DM_deprecated(md, &mectx, NULL, deformedVerts, numVerts);
|
||||
modifier_deformVerts(md, &mectx, NULL, deformedVerts, numVerts);
|
||||
|
||||
if (md == pretessellatePoint)
|
||||
break;
|
||||
|
||||
@@ -1052,7 +1052,7 @@ void BKE_lattice_modifiers_calc(struct Depsgraph *depsgraph, Scene *scene, Objec
|
||||
if (mti->type != eModifierTypeType_OnlyDeform) continue;
|
||||
|
||||
if (!vertexCos) vertexCos = BKE_lattice_vertexcos_get(ob_orig, &numVerts);
|
||||
modifier_deformVerts_DM_deprecated(md, &mectx, NULL, vertexCos, numVerts);
|
||||
modifier_deformVerts(md, &mectx, NULL, vertexCos, numVerts);
|
||||
}
|
||||
|
||||
if (ob->id.tag & LIB_TAG_COPIED_ON_WRITE) {
|
||||
|
||||
@@ -638,7 +638,7 @@ static int modifier_apply_obdata(ReportList *reports, Depsgraph *depsgraph, Scen
|
||||
BKE_report(reports, RPT_INFO, "Applied modifier only changed CV points, not tessellated/bevel vertices");
|
||||
|
||||
vertexCos = BKE_curve_nurbs_vertexCos_get(&cu->nurb, &numVerts);
|
||||
modifier_deformVerts_DM_deprecated(md, &mectx, NULL, vertexCos, numVerts);
|
||||
modifier_deformVerts(md, &mectx, NULL, vertexCos, numVerts);
|
||||
BK_curve_nurbs_vertexCos_apply(&cu->nurb, vertexCos);
|
||||
|
||||
MEM_freeN(vertexCos);
|
||||
|
||||
Reference in New Issue
Block a user