remove unused initFlags option in mirror modifier
authorCampbell Barton <ideasman42@gmail.com>
Thu, 29 Dec 2011 06:32:50 +0000 (06:32 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 29 Dec 2011 06:32:50 +0000 (06:32 +0000)
source/blender/modifiers/intern/MOD_mirror.c

index dc38dcba9d4b41d8c5c25db5deab105b608d6fe7..c130af158bb1dfde9d00081111bab1803cf4ca20 100644 (file)
@@ -97,7 +97,6 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
 static DerivedMesh *doMirrorOnAxis(MirrorModifierData *mmd,
                                    Object *ob,
                                    DerivedMesh *dm,
-                                   int initFlags,
                                    int axis)
 {
        int i;
@@ -208,8 +207,6 @@ static DerivedMesh *doMirrorOnAxis(MirrorModifierData *mmd,
                
                med->v1 = indexMap[inMED.v1][0];
                med->v2 = indexMap[inMED.v2][0];
-               if(initFlags)
-                       med->flag |= ME_EDGEDRAW | ME_EDGERENDER;
                
                if(indexMap[inMED.v1][1] || indexMap[inMED.v2][1]) {
                        MEdge *med2 = CDDM_get_edge(result, numEdges);
@@ -289,23 +286,22 @@ static DerivedMesh *doMirrorOnAxis(MirrorModifierData *mmd,
 }
 
 static DerivedMesh *mirrorModifier__doMirror(MirrorModifierData *mmd,
-                                               Object *ob, DerivedMesh *dm,
-                                               int initFlags)
+                                               Object *ob, DerivedMesh *dm)
 {
        DerivedMesh *result = dm;
 
        /* check which axes have been toggled and mirror accordingly */
        if(mmd->flag & MOD_MIR_AXIS_X) {
-               result = doMirrorOnAxis(mmd, ob, result, initFlags, 0);
+               result = doMirrorOnAxis(mmd, ob, result, 0);
        }
        if(mmd->flag & MOD_MIR_AXIS_Y) {
                DerivedMesh *tmp = result;
-               result = doMirrorOnAxis(mmd, ob, result, initFlags, 1);
+               result = doMirrorOnAxis(mmd, ob, result, 1);
                if(tmp != dm) tmp->release(tmp); /* free intermediate results */
        }
        if(mmd->flag & MOD_MIR_AXIS_Z) {
                DerivedMesh *tmp = result;
-               result = doMirrorOnAxis(mmd, ob, result, initFlags, 2);
+               result = doMirrorOnAxis(mmd, ob, result, 2);
                if(tmp != dm) tmp->release(tmp); /* free intermediate results */
        }
 
@@ -320,7 +316,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
        DerivedMesh *result;
        MirrorModifierData *mmd = (MirrorModifierData*) md;
 
-       result = mirrorModifier__doMirror(mmd, ob, derivedData, 0);
+       result = mirrorModifier__doMirror(mmd, ob, derivedData);
 
        if(result != derivedData)
                CDDM_calc_normals(result);