# 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
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.
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)
/* 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;
}
/* 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;
/* 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);
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 {
MEM_freeN(vso->edge_frame);
}
- if(vso->vtx_frame) {
+ if (vso->vtx_frame) {
MEM_freeN(vso->vtx_frame);
}