[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59574] trunk/blender/source/blender: style cleanup
Campbell Barton
ideasman42 at gmail.com
Tue Aug 27 23:30:34 CEST 2013
Revision: 59574
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59574
Author: campbellbarton
Date: 2013-08-27 21:30:33 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
style cleanup
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/treehash.c
trunk/blender/source/blender/bmesh/intern/bmesh_opdefines.c
trunk/blender/source/blender/bmesh/tools/bmesh_bisect_plane.c
Modified: trunk/blender/source/blender/blenkernel/intern/treehash.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/treehash.c 2013-08-27 20:58:37 UTC (rev 59573)
+++ trunk/blender/source/blender/blenkernel/intern/treehash.c 2013-08-27 21:30:33 UTC (rev 59574)
@@ -107,7 +107,8 @@
return treehash;
}
-static void free_treehash_group(void *key) {
+static void free_treehash_group(void *key)
+{
tse_group_free(key);
}
Modified: trunk/blender/source/blender/bmesh/intern/bmesh_opdefines.c
===================================================================
--- trunk/blender/source/blender/bmesh/intern/bmesh_opdefines.c 2013-08-27 20:58:37 UTC (rev 59573)
+++ trunk/blender/source/blender/bmesh/intern/bmesh_opdefines.c 2013-08-27 21:30:33 UTC (rev 59574)
@@ -1129,7 +1129,7 @@
{"dist", BMO_OP_SLOT_FLT}, /* minimum distance when testing if a vert is exactly on the plane */
{"plane_co", BMO_OP_SLOT_VEC}, /* point on the plane */
{"plane_no", BMO_OP_SLOT_VEC}, /* direction of the plane */
- {"use_snap_center",BMO_OP_SLOT_BOOL}, /* snap axis aligned verts to the center */
+ {"use_snap_center", BMO_OP_SLOT_BOOL}, /* snap axis aligned verts to the center */
{"clear_outer", BMO_OP_SLOT_BOOL}, /* when enabled. remove all geometry on the positive side of the plane */
{"clear_inner", BMO_OP_SLOT_BOOL}, /* when enabled. remove all geometry on the negative side of the plane */
{{'\0'}},
Modified: trunk/blender/source/blender/bmesh/tools/bmesh_bisect_plane.c
===================================================================
--- trunk/blender/source/blender/bmesh/tools/bmesh_bisect_plane.c 2013-08-27 20:58:37 UTC (rev 59573)
+++ trunk/blender/source/blender/bmesh/tools/bmesh_bisect_plane.c 2013-08-27 21:30:33 UTC (rev 59574)
@@ -182,7 +182,7 @@
cross_v3_v3v3(sort_dir, f->no, plane);
if (UNLIKELY(normalize_v3(sort_dir) == 0.0f)) {
/* find any 2 verts and get their direction */
- for(i = 0; i < STACK_SIZE(vert_split_arr); i++) {
+ for (i = 0; i < STACK_SIZE(vert_split_arr); i++) {
if (!equals_v3v3(vert_split_arr[0]->co, vert_split_arr[i]->co)) {
sub_v3_v3v3(sort_dir, vert_split_arr[0]->co, vert_split_arr[i]->co);
normalize_v3(sort_dir);
@@ -214,7 +214,7 @@
/* ---- */
/* Sort the verts across the face from one side to another */
- for(i = 0; i < STACK_SIZE(vert_split_arr); i++) {
+ for (i = 0; i < STACK_SIZE(vert_split_arr); i++) {
BMVert *v = vert_split_arr[i];
BM_VERT_SORTVAL(v) = dot_v3v3(sort_dir, v->co);
}
@@ -233,7 +233,7 @@
STACK_INIT(face_split_arr);
STACK_PUSH(face_split_arr, f);
- for(i = 0; i < STACK_SIZE(vert_split_arr) - 1; i++) {
+ for (i = 0; i < STACK_SIZE(vert_split_arr) - 1; i++) {
BMVert *v_a = vert_split_arr[i];
BMVert *v_b = vert_split_arr[i + 1];
float co_mid[2];
@@ -249,7 +249,7 @@
bool found = false;
unsigned int j;
- for(j = 0; j < STACK_SIZE(face_split_arr); j++) {
+ for (j = 0; j < STACK_SIZE(face_split_arr); j++) {
/* would be nice to avoid loop lookup here,
* but we need to know which face the verts are in */
if ((l_a = BM_face_vert_share_loop(face_split_arr[j], v_a)) &&
@@ -352,7 +352,7 @@
/* store a stack of faces to be evaluated for splitting */
BLI_LINKSTACK_INIT(face_stack);
- for(i = 0; i < einput_len; i++) {
+ for (i = 0; i < einput_len; i++) {
/* we could check edge_is_cut_test(e) but there is no point */
BMEdge *e = edges_arr[i];
const int side[2] = {BM_VERT_DIR(e->v1), BM_VERT_DIR(e->v2)};
More information about the Bf-blender-cvs
mailing list