[Bf-blender-cvs] [3df612c61fc] soc-2017-normal-tools: Fix error in build by including limits.h

Rohan Rathi noreply at git.blender.org
Mon Aug 7 07:58:45 CEST 2017


Commit: 3df612c61fc8e30bc89763ed51dff845c6aa64bc
Author: Rohan Rathi
Date:   Mon Aug 7 07:17:21 2017 +0530
Branches: soc-2017-normal-tools
https://developer.blender.org/rB3df612c61fc8e30bc89763ed51dff845c6aa64bc

Fix error in build by including limits.h

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

M	source/blender/modifiers/intern/MOD_weighted_normal.c

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

diff --git a/source/blender/modifiers/intern/MOD_weighted_normal.c b/source/blender/modifiers/intern/MOD_weighted_normal.c
index 021ceee2a06..2dd5aa075da 100644
--- a/source/blender/modifiers/intern/MOD_weighted_normal.c
+++ b/source/blender/modifiers/intern/MOD_weighted_normal.c
@@ -23,6 +23,8 @@
  *  \ingroup modifiers
  */
 
+#include "limits.h"
+
 #include "MEM_guardedalloc.h"
 
 #include "DNA_mesh_types.h"
@@ -136,7 +138,7 @@ static void apply_weights_sharp_loops(WeightedNormalModifierData *wnmd, int *loo
 		if (wnmd->mode == MOD_WEIGHTEDNORMAL_MODE_FACE) {
 			j = loops_to_poly[loop_index[i]];
 		}
-		else if (wnmd->mode == MOD_WEIGHTEDNORMAL_MODE_ANGLE || wnmd->mode == MOD_WEIGHTEDNORMAL_MODE_FACE_ANGLE) {
+		else {
 			j = loop_index[i];
 		}




More information about the Bf-blender-cvs mailing list