diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-21 16:51:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-21 16:51:47 +0400 |
commit | 6701933f5ce4598d2fc98bd27a5b8a4e58ca06e2 (patch) | |
tree | 86eb9432c2350152aa7d829bb7adf41cf9fd2bde /source/blender/blenlib | |
parent | 96b024333edf31fb02881b1c2fbacaf556a49439 (diff) |
style cleanup
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/BLI_kdtree.c | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/fileops.c | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/math_geom.c | 8 | ||||
-rw-r--r-- | source/blender/blenlib/intern/pbvh.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenlib/intern/BLI_kdtree.c b/source/blender/blenlib/intern/BLI_kdtree.c index 388c61ec9dd..ee06f32a934 100644 --- a/source/blender/blenlib/intern/BLI_kdtree.c +++ b/source/blender/blenlib/intern/BLI_kdtree.c @@ -142,7 +142,7 @@ static float squared_distance(const float v2[3], const float v1[3], float *UNUSE dist = dot_v3v3(d, d); - //if(n1 && n2 && (dot_v3v3(n1, n2) < 0.0f)) + //if (n1 && n2 && (dot_v3v3(n1, n2) < 0.0f)) /* can someone explain why this is done?*/ if (n2 && (dot_v3v3(d, n2) < 0.0f)) { diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index 93312f04692..5bbfd596ba7 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -222,7 +222,7 @@ gzFile BLI_gzopen(const char *filename, const char *mode) int i = 0; /* xxx Creates file before transcribing the path */ - if(mode[0] == 'w') + if (mode[0] == 'w') fclose(ufopen(filename,"a")); UTF16_ENCODE(filename); diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c index e76431e981e..b92e5d39b4b 100644 --- a/source/blender/blenlib/intern/math_geom.c +++ b/source/blender/blenlib/intern/math_geom.c @@ -1126,10 +1126,10 @@ int isect_axial_line_tri_v3(const int axis, const float p1[3], const float p2[3] //return isect_line_tri_v3(p1,p2,v0,v1,v2,lambda); ///* first a simple bounding box test */ - //if(MIN3(v0[a1],v1[a1],v2[a1]) > p1[a1]) return 0; - //if(MIN3(v0[a2],v1[a2],v2[a2]) > p1[a2]) return 0; - //if(MAX3(v0[a1],v1[a1],v2[a1]) < p1[a1]) return 0; - //if(MAX3(v0[a2],v1[a2],v2[a2]) < p1[a2]) return 0; + //if (MIN3(v0[a1],v1[a1],v2[a1]) > p1[a1]) return 0; + //if (MIN3(v0[a2],v1[a2],v2[a2]) > p1[a2]) return 0; + //if (MAX3(v0[a1],v1[a1],v2[a1]) < p1[a1]) return 0; + //if (MAX3(v0[a2],v1[a2],v2[a2]) < p1[a2]) return 0; ///* then a full intersection test */ diff --git a/source/blender/blenlib/intern/pbvh.c b/source/blender/blenlib/intern/pbvh.c index e1b7ff120f9..7a955cf6ed9 100644 --- a/source/blender/blenlib/intern/pbvh.c +++ b/source/blender/blenlib/intern/pbvh.c @@ -1452,7 +1452,7 @@ static int ray_aabb_intersect(PBVHNode *node, void *data_v) // XXX jwilkins: tmax does not need to be updated since we don't use it // keeping this here for future reference - //if(tzmax < tmax) tmax = tzmax; + //if (tzmax < tmax) tmax = tzmax; node->tmin = tmin; |