merge with/from trunk at r35190
[blender.git] / source / blender / blenlib / intern / math_geom.c
index 8e0fea54e68313c4ae92b7c0502478b14bdcfdb2..2d4935ed4a68a541022be97593e162b96f8330d9 100644 (file)
@@ -1702,7 +1702,7 @@ void interp_weights_poly_v3(float *w,float v[][3], int n, float *co)
                t2= mean_value_half_tan(co, vmid, vnext);
 
                len= len_v3v3(co, vmid);
-               w[i]= (t1+t2)/len;
+               w[i]= (t1+t2)/(len+FLT_EPSILON*2);
                totweight += w[i];
        }