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];
                }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to