[Bf-blender-cvs] [a7fcbd2] temp_custom_loop_normals: Change for bool handling (for MSVC)

Campbell Barton noreply at git.blender.org
Mon Nov 3 17:13:38 CET 2014


Commit: a7fcbd280aea0ccc0041a127a781d961d278df2d
Author: Campbell Barton
Date:   Mon Nov 3 17:13:11 2014 +0100
Branches: temp_custom_loop_normals
https://developer.blender.org/rBa7fcbd280aea0ccc0041a127a781d961d278df2d

Change for bool handling (for MSVC)

===================================================================

M	source/blender/blenkernel/intern/DerivedMesh.c

===================================================================

diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c
index aa098fe..3bf8536 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.c
+++ b/source/blender/blenkernel/intern/DerivedMesh.c
@@ -1500,7 +1500,7 @@ static void mesh_calc_modifiers(Scene *scene, Object *ob, float (*inputVertexCos
 	/* XXX Same as above... For now, only weights preview in WPaint mode. */
 	const bool do_mod_wmcol = do_init_wmcol;
 
-	bool do_loop_normals = (me->flag & ME_AUTOSMOOTH);
+	bool do_loop_normals = (me->flag & ME_AUTOSMOOTH) != 0;
 	const float loop_normals_split_angle = me->smoothresh;
 
 	VirtualModifierData virtualModifierData;
@@ -2008,7 +2008,7 @@ static void editbmesh_calc_modifiers(Scene *scene, Object *ob, BMEditMesh *em, D
 	const bool do_mod_wmcol = do_init_wmcol;
 	VirtualModifierData virtualModifierData;
 
-	bool do_loop_normals = (((Mesh *)(ob->data))->flag & ME_AUTOSMOOTH);
+	bool do_loop_normals = (((Mesh *)(ob->data))->flag & ME_AUTOSMOOTH) != 0;
 	const float loop_normals_split_angle = ((Mesh *)(ob->data))->smoothresh;
 
 	modifiers_clearErrors(ob);




More information about the Bf-blender-cvs mailing list