Another fix for #31743: check for DM's verts number matches passed number of vertices

Now bevelled splines shall work in the same way as meshes.
This commit is contained in:
Sergey Sharybin 2012-06-08 09:15:45 +00:00
parent e446c6af1f
commit 9564138847

@ -118,7 +118,7 @@ static void smoothModifier_do(
fac = smd->fac;
facm = 1 - fac;
if (ob->type == OB_MESH) {
if (dm->getNumVerts(dm) == numVerts) {
medges = dm->getEdgeArray(dm);
numDMEdges = dm->getNumEdges(dm);
}