style cleanup: pep8 some C/style

This commit is contained in:
Campbell Barton 2012-04-08 08:09:37 +00:00
parent c1e475e527
commit 4fc6ef1cf5
6 changed files with 16 additions and 11 deletions

@ -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

@ -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.

@ -147,8 +147,9 @@ 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)

@ -209,7 +209,8 @@ 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);
}