[Bf-blender-cvs] [7259ac8] master: Code cleanup: use bool instead of int
Sergey Sharybin
noreply at git.blender.org
Wed Jun 18 12:06:20 CEST 2014
Commit: 7259ac821ea73bdde3add0390dfc1137f619bc9a
Author: Sergey Sharybin
Date: Wed Jun 18 16:05:42 2014 +0600
https://developer.blender.org/rB7259ac821ea73bdde3add0390dfc1137f619bc9a
Code cleanup: use bool instead of int
===================================================================
M source/blender/modifiers/intern/MOD_subsurf.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_subsurf.c b/source/blender/modifiers/intern/MOD_subsurf.c
index 3de8504..f178582 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;
More information about the Bf-blender-cvs
mailing list