diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-06-18 14:05:42 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-06-18 14:05:42 +0400 |
commit | 7259ac821ea73bdde3add0390dfc1137f619bc9a (patch) | |
tree | 6975adb1852df1add5507ad0e9254f20f033897e /source/blender/modifiers | |
parent | 87930eb7c24e9e3be65c92062c4c8623aea2dda8 (diff) |
Code cleanup: use bool instead of int
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_subsurf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_subsurf.c b/source/blender/modifiers/intern/MOD_subsurf.c index 3de85047ebf..f17858264f8 100644 --- a/source/blender/modifiers/intern/MOD_subsurf.c +++ b/source/blender/modifiers/intern/MOD_subsurf.c @@ -98,8 +98,8 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, SubsurfModifierData *smd = (SubsurfModifierData *) md; SubsurfFlags subsurf_flags = 0; DerivedMesh *result; - const int useRenderParams = flag & MOD_APPLY_RENDER; - const int isFinalCalc = flag & MOD_APPLY_USECACHE; + const bool useRenderParams = (flag & MOD_APPLY_RENDER) != 0; + const bool isFinalCalc = (flag & MOD_APPLY_USECACHE) != 0; if (useRenderParams) subsurf_flags |= SUBSURF_USE_RENDER_PARAMS; |