style cleanup: pep8 some C/style
authorCampbell Barton <ideasman42@gmail.com>
Sun, 8 Apr 2012 08:09:37 +0000 (08:09 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 8 Apr 2012 08:09:37 +0000 (08:09 +0000)
release/scripts/modules/bpy_extras/mesh_utils.py
release/scripts/modules/bpy_types.py
release/scripts/startup/bl_ui/properties_data_modifier.py
source/blender/bmesh/intern/bmesh_structure.c
source/blender/bmesh/operators/bmo_connect.c
source/blender/editors/mesh/editmesh_slide.c

index c3ecfcd5dcab651f7b640f4200d030230a7df637..3ce45154765ce0e815cbd4d53daf7f1b4a233b48 100644 (file)
@@ -48,7 +48,8 @@ def mesh_linked_tessfaces(mesh):
 
     # sort faces into connectivity groups
     face_groups = [[f] for f in mesh.tessfaces]
-    face_mapping = list(range(len(mesh.tessfaces)))  # map old, new face location
+    # map old, new face location
+    face_mapping = list(range(len(mesh.tessfaces)))
 
     # Now clump faces iteratively
     ok = True
index 6f921868ccc19eb95bcf6c1df31cbf877220c3c2..131bb8ee77ea96a6188deb74e0ef860c76d672a4 100644 (file)
@@ -671,7 +671,9 @@ class Header(StructRNA, _GenericUI, metaclass=RNAMeta):
 class Menu(StructRNA, _GenericUI, metaclass=RNAMeta):
     __slots__ = ()
 
-    def path_menu(self, searchpaths, operator, props_default={}, filter_ext=None):
+    def path_menu(self, searchpaths, operator,
+                  props_default={}, filter_ext=None):
+
         layout = self.layout
         # hard coded to set the operators 'filepath' to the filename.
 
index 50b4a575383c6bcefcad70114d2ec4091ec7580f..a4e7d1070994034eb6c9d19af367d932cf255c0f 100644 (file)
@@ -318,7 +318,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
         col = split.column()
         col.label(text="Vertex Group:")
         col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
-        
+
         layout.separator()
         layout.prop(md, "strength", slider=True)
 
index aa5c8b81c2afb9129ad5d8c0ffd21833c38f60c8..7fcd6f39fb815c60114b64be7be505460d59a746 100644 (file)
@@ -547,8 +547,8 @@ int bmesh_loop_validate(BMFace *f)
 
        /* Validate that the face loop cycle is the length specified by f->len */
        for (i = 1, l_iter = l_first->next; i < len; i++, l_iter = l_iter->next) {
-               if ( (l_iter->f != f) ||
-                    (l_iter == l_first))
+               if ((l_iter->f != f) ||
+                   (l_iter == l_first))
                {
                        return FALSE;
                }
index 07be4cdd5c1b3871137e3d50c8d91c655ce0d1bc..69a9b75b258cbca723540d752e6019c596888443 100644 (file)
@@ -147,11 +147,12 @@ static BMVert *get_outer_vert(BMesh *bm, BMEdge *e)
 /* Clamp x to the interval {0..len-1}, with wrap-around */
 static int clamp_index(const int x, const int len)
 {
-       if (x >= 0)
+       if (x >= 0) {
                return x % len;
+       }
        else {
                int r = len - (-x % len);
-               if(r == len)
+               if (r == len)
                        return len - 1;
                else
                        return r;
index 063690a5d9dee4c3feb671768ade1d2268ddb9e1..94c546f0f1b42867afd18ff755f89d891d563dad 100644 (file)
@@ -198,7 +198,7 @@ static void vtx_slide_confirm(bContext *C, wmOperator *op)
        /* Invoke operator */
        edbm_vert_slide_exec(C, op);
 
-       if(vso->snap_n_merge) {
+       if (vso->snap_n_merge) {
                float other_d;
                BMVert* other = BM_edge_other_vert(vso->sel_edge, vso->start_vtx);
                other_d = len_v3v3(vso->interp, other->co);
@@ -209,9 +209,10 @@ static void vtx_slide_confirm(bContext *C, wmOperator *op)
                        BM_vert_select_set(bm, vso->start_vtx, TRUE);
                        EDBM_op_callf(em, op, "pointmerge verts=%hv mergeco=%v", BM_ELEM_SELECT, other->co);
                        EDBM_flag_disable_all(em, BM_ELEM_SELECT);
-               } else {
+               }
+               else {
                        /* Store in historty if not merging */
-                       EDBM_editselection_store(em, &vso->start_vtx->head);            
+                       EDBM_editselection_store(em, &vso->start_vtx->head);
                }
        }
        else {
@@ -247,7 +248,7 @@ static void vtx_slide_exit(const bContext *C, wmOperator *op)
                MEM_freeN(vso->edge_frame);
        }
 
-       if(vso->vtx_frame) {
+       if (vso->vtx_frame) {
                MEM_freeN(vso->vtx_frame);
        }