diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-20 15:56:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-20 15:56:28 +0400 |
commit | 27e86ed8324c5cc72e58f61231018b6c77689f03 (patch) | |
tree | 2ce5eafe712cd230a268ffa7491a60eaf68c65d1 /source/blender/blenlib | |
parent | 03d053da4cf36d17d59434da0d17252411356554 (diff) |
Code cleanup: use bools
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_quadric.h | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/quadric.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_quadric.h b/source/blender/blenlib/BLI_quadric.h index e71a6473852..82c39463dd2 100644 --- a/source/blender/blenlib/BLI_quadric.h +++ b/source/blender/blenlib/BLI_quadric.h @@ -51,6 +51,6 @@ void BLI_quadric_mul(Quadric *a, const float scalar); /* solve */ float BLI_quadric_evaluate(const Quadric *q, const float v[3]); -int BLI_quadric_optimize(const Quadric *q, float v[3], const float epsilon); +bool BLI_quadric_optimize(const Quadric *q, float v[3], const float epsilon); #endif /* __BLI_QUADRIC_H__ */ diff --git a/source/blender/blenlib/intern/quadric.c b/source/blender/blenlib/intern/quadric.c index 8c831bdada0..814d05ca80e 100644 --- a/source/blender/blenlib/intern/quadric.c +++ b/source/blender/blenlib/intern/quadric.c @@ -109,7 +109,7 @@ float BLI_quadric_evaluate(const Quadric *q, const float v[3]) q->d2); } -int BLI_quadric_optimize(const Quadric *q, float v[3], const float epsilon) +bool BLI_quadric_optimize(const Quadric *q, float v[3], const float epsilon) { float m[3][3]; @@ -120,9 +120,9 @@ int BLI_quadric_optimize(const Quadric *q, float v[3], const float epsilon) mul_m3_v3(m, v); negate_v3(v); - return TRUE; + return true; } else { - return FALSE; + return false; } } |