diff options
author | Jacques Lucke <jacques@blender.org> | 2020-09-09 11:44:46 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-09-09 11:44:46 +0300 |
commit | 916497627ce07318bb9bc82aabcb42af9561c560 (patch) | |
tree | b9fe6b958087d04c870881a85c33bf7081e02235 /source/blender/blenkernel/intern/CCGSubSurf_inline.h | |
parent | 095142eae65820c8daf246def0866ac6accc9c87 (diff) |
Cleanup: use bool instead of int
Diffstat (limited to 'source/blender/blenkernel/intern/CCGSubSurf_inline.h')
-rw-r--r-- | source/blender/blenkernel/intern/CCGSubSurf_inline.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/CCGSubSurf_inline.h b/source/blender/blenkernel/intern/CCGSubSurf_inline.h index 8aa1fede57d..91a7129b433 100644 --- a/source/blender/blenkernel/intern/CCGSubSurf_inline.h +++ b/source/blender/blenkernel/intern/CCGSubSurf_inline.h @@ -213,15 +213,15 @@ BLI_INLINE void Normalize(float no[3]) /* Data layers mathematics. */ -BLI_INLINE int VertDataEqual(const float a[], const float b[], const CCGSubSurf *ss) +BLI_INLINE bool VertDataEqual(const float a[], const float b[], const CCGSubSurf *ss) { int i; for (i = 0; i < ss->meshIFC.numLayers; i++) { if (a[i] != b[i]) { - return 0; + return false; } } - return 1; + return true; } BLI_INLINE void VertDataZero(float v[], const CCGSubSurf *ss) |