[Bf-blender-cvs] [7daae642d84] master: Cleanup: Fix MSVC warning message

Antonio Vazquez noreply at git.blender.org
Thu Jul 13 17:54:59 CEST 2017


Commit: 7daae642d8406854f25b860a5faacdef4d54af1b
Author: Antonio Vazquez
Date:   Thu Jul 13 17:54:24 2017 +0200
Branches: master
https://developer.blender.org/rB7daae642d8406854f25b860a5faacdef4d54af1b

Cleanup: Fix MSVC warning message

The const key is required by compiler to avoid warning

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

M	source/blender/bmesh/intern/bmesh_queries.c

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

diff --git a/source/blender/bmesh/intern/bmesh_queries.c b/source/blender/bmesh/intern/bmesh_queries.c
index 5e8ae696db2..668fb998254 100644
--- a/source/blender/bmesh/intern/bmesh_queries.c
+++ b/source/blender/bmesh/intern/bmesh_queries.c
@@ -1514,7 +1514,7 @@ float BM_loop_calc_face_angle(const BMLoop *l)
  * \param epsilon: Value to avoid numeric errors (1e-5f works well).
  * \param r_normal Resulting normal
  */
-float BM_loop_calc_face_normal_safe_ex(const BMLoop *l, float epsilon_sq, float r_normal[3])
+float BM_loop_calc_face_normal_safe_ex(const BMLoop *l, const float epsilon_sq, float r_normal[3])
 {
 	/* Note: we cannot use result of normal_tri_v3 here to detect colinear vectors (vertex on a straight line)
 	 * from zero value, because it does not normalize both vectors before making crossproduct.




More information about the Bf-blender-cvs mailing list