converted more mixed tab/space indentations to tabs. only whitespace changes.
[blender.git] / source / blender / editors / mesh / editmesh_tools.c
index 4741f3c..83840f0 100644 (file)
@@ -2755,7 +2755,7 @@ void esubdivideflag(Object *obedit, EditMesh *em, int flag, float smooth, float
 
                                // Beauty Long Edges
                                else {
-                                        for(j=0;j<2;j++) {
+                                       for(j=0;j<2;j++) {
                                                hold = -1;
                                                for(i=0;i<4;i++) {
                                                        if(length[i] < 0) {
@@ -2969,8 +2969,8 @@ void esubdivideflag(Object *obedit, EditMesh *em, int flag, float smooth, float
                        }
                }
        }
-        if(em->selectmode & SCE_SELECT_VERTEX) {
-                for(eed = em->edges.first;eed;eed = eed->next) {
+       if(em->selectmode & SCE_SELECT_VERTEX) {
+               for(eed = em->edges.first;eed;eed = eed->next) {
                        if(eed->f & SELECT) {
                                eed->v1->f |= SELECT;
                                eed->v2->f |= SELECT;
@@ -3643,7 +3643,7 @@ static void edge_rotate(EditMesh *em, wmOperator *op, EditEdge *eed, int dir)
                return;
 
        /* how many edges does each face have */
-        if(face[0]->e4) fac1= 4;
+       if(face[0]->e4) fac1= 4;
        else fac1= 3;
 
        if(face[1]->e4) fac2= 4;
@@ -4061,8 +4061,8 @@ useless:
                }
                // Make sure loop is not 2 edges of same face
                if(ct > 1) {
-                  BKE_report(op->reports, RPT_ERROR, "Loop crosses itself");
-                  return 0;
+                       BKE_report(op->reports, RPT_ERROR, "Loop crosses itself");
+                       return 0;
                }
        }
        // Get # of selected verts
@@ -4179,11 +4179,11 @@ useless:
                        for(eed=em->edges.first;eed;eed=eed->next) {
                                if(editedge_containsVert(eed, ev)) {
                                        if(!(eed->f & SELECT)) {
-                                                if(!tempsv->up) {
-                                                        tempsv->up = eed;
-                                                } else if (!(tempsv->down)) {
-                                                        tempsv->down = eed;
-                                                }
+                                               if(!tempsv->up) {
+                                                       tempsv->up = eed;
+                                               } else if (!(tempsv->down)) {
+                                                       tempsv->down = eed;
+                                               }
                                        }
                                }
                        }
@@ -4195,33 +4195,33 @@ useless:
                                        for(efa = em->faces.first;efa;efa=efa->next) {
                                                if(editface_containsEdge(efa, eed)) {
                                                        if(editedge_containsVert(efa->e1, ev) && efa->e1 != eed) {
-                                                                if(!tempsv->up) {
-                                                                        tempsv->up = efa->e1;
-                                                                } else if (!(tempsv->down)) {
-                                                                        tempsv->down = efa->e1;
-                                                                }
+                                                               if(!tempsv->up) {
+                                                                       tempsv->up = efa->e1;
+                                                               } else if (!(tempsv->down)) {
+                                                                       tempsv->down = efa->e1;
+                                                               }
                                                        }
                                                        if(editedge_containsVert(efa->e2, ev) && efa->e2 != eed) {
-                                                                if(!tempsv->up) {
-                                                                        tempsv->up = efa->e2;
-                                                                } else if (!(tempsv->down)) {
-                                                                        tempsv->down = efa->e2;
-                                                                }
+                                                               if(!tempsv->up) {
+                                                                       tempsv->up = efa->e2;
+                                                               } else if (!(tempsv->down)) {
+                                                                       tempsv->down = efa->e2;
+                                                               }
                                                        }
                                                        if(editedge_containsVert(efa->e3, ev) && efa->e3 != eed) {
-                                                                if(!tempsv->up) {
-                                                                        tempsv->up = efa->e3;
-                                                                } else if (!(tempsv->down)) {
-                                                                        tempsv->down = efa->e3;
-                                                                }
+                                                               if(!tempsv->up) {
+                                                                       tempsv->up = efa->e3;
+                                                               } else if (!(tempsv->down)) {
+                                                                       tempsv->down = efa->e3;
+                                                               }
                                                        }
                                                        if(efa->e4) {
                                                                if(editedge_containsVert(efa->e4, ev) && efa->e4 != eed) {
-                                                                        if(!tempsv->up) {
-                                                                                tempsv->up = efa->e4;
-                                                                        } else if (!(tempsv->down)) {
-                                                                                tempsv->down = efa->e4;
-                                                                        }
+                                                                       if(!tempsv->up) {
+                                                                               tempsv->up = efa->e4;
+                                                                       } else if (!(tempsv->down)) {
+                                                                               tempsv->down = efa->e4;
+                                                                       }
                                                                }
                                                        }
 
@@ -4665,7 +4665,7 @@ useless:
                                                        mvalo[0] = -1;
                                        } else if(ELEM(event, RIGHTARROWKEY, WHEELUPMOUSE)) { // Scroll through Control Edges
                                                look = vertlist;
-                                                while(look) {
+                                               while(look) {
                                                        if(nearest == (EditVert*)look->link) {
                                                                if(look->next == NULL) {
                                                                        nearest =  (EditVert*)vertlist->link;
@@ -4679,7 +4679,7 @@ useless:
                                                }
                                        } else if(ELEM(event, LEFTARROWKEY, WHEELDOWNMOUSE)) { // Scroll through Control Edges
                                                look = vertlist;
-                                                while(look) {
+                                               while(look) {
                                                        if(look->next) {
                                                                if(look->next->link == nearest) {
                                                                        nearest = (EditVert*)look->link;
@@ -4817,7 +4817,7 @@ void mesh_set_face_flags(EditMesh *em, short mode)
        add_numbut(12, TOG|SHO, "Sort", 0, 0, &m_sort, NULL);
 
        if (!do_clever_numbuts((mode ? "Set Flags" : "Clear Flags"), 13, REDRAW))
-                return;
+               return;
 
        /* these 2 cant both be on */
        if (mode) /* are we seeting*/
@@ -5414,7 +5414,7 @@ static void freecollections(ListBase *allcollections)
 
 /*Begin UV Edge Collapse Code
        Like Edge subdivide, Edge Collapse should handle UV's intelligently, but since UV's are a per-face attribute, normal edge collapse will fail
-       in areas such as the boundries of 'UV islands'. So for each edge collection we need to build a set of 'welded' UV vertices and edges for it.
+       in areas such as the boundaries of 'UV islands'. So for each edge collection we need to build a set of 'welded' UV vertices and edges for it.
        The welded UV edges can then be sorted and collapsed.
 */
 typedef struct wUV{