small feature request from zanqdo, merging in the mirror modifier is now optional...
[blender.git] / source / blender / modifiers / intern / MOD_mirror.c
index 9546bf1300b95fd36887220f435a676d9c503012..19f21ce655f802c7b105b4fc020de5ed5cac5b06 100644 (file)
@@ -142,7 +142,11 @@ static DerivedMesh *doMirrorOnAxis(MirrorModifierData *mmd,
                if (mmd->mirror_ob) {
                        mul_m4_v3(mtx, co);
                }
-               isShared = ABS(co[axis])<=tolerance;
+               
+               if(mmd->flag & MOD_MIR_MERGE)
+                       isShared = ABS(co[axis])<=tolerance;
+               else
+                       isShared = 0;
                
                /* Because the topology result (# of vertices) must be the same if
                * the mesh data is overridden by vertex cos, have to calc sharedness
@@ -154,8 +158,8 @@ static DerivedMesh *doMirrorOnAxis(MirrorModifierData *mmd,
                
                indexMap[i][0] = numVerts - 1;
                indexMap[i][1] = !isShared;
-               
-               if(isShared) {
+               //
+               if(isShared ) {
                        co[axis] = 0;
                        if (mmd->mirror_ob) {
                                mul_m4_v3(imtx, co);