Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-06-08 13:15:45 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-08 13:15:45 +0400
commit95641388471d178552fea26bb477c13536bd58ef (patch)
tree35d77ee331ef4d083b9b0b8690fb1e0931acccdd
parente446c6af1fbf92bad71644ac687b5b24c4c824fd (diff)
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.
-rw-r--r--source/blender/modifiers/intern/MOD_smooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_smooth.c b/source/blender/modifiers/intern/MOD_smooth.c
index 7b230d7365d..545e2135344 100644
--- a/source/blender/modifiers/intern/MOD_smooth.c
+++ b/source/blender/modifiers/intern/MOD_smooth.c
@@ -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);
}