diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-11-03 09:38:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-03 09:46:09 +0300 |
commit | 77e223ddd5ab69b94f04c34f596b0378f707508c (patch) | |
tree | d6b22e3f5061d1bcaf7306f80be641cc800984fd /source/blender/bmesh/intern/bmesh_polygon.h | |
parent | ac7abb55d7c8ff0aed19c022e5cb519d93d8ae47 (diff) |
BMesh: inline vert-loop iteration for normal calc
Calculating normals is called often (sculpting for eg),
so avoid using high-level iterator here.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.h')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_polygon.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_polygon.h b/source/blender/bmesh/intern/bmesh_polygon.h index 11d513a2bcb..ff0938eb4e1 100644 --- a/source/blender/bmesh/intern/bmesh_polygon.h +++ b/source/blender/bmesh/intern/bmesh_polygon.h @@ -54,7 +54,8 @@ void BM_face_normal_update(BMFace *f) ATTR_NONNULL(); void BM_edge_normals_update(BMEdge *e) ATTR_NONNULL(); -bool BM_vert_normal_update_ex(BMVert *v, const char hflag, float r_no[3]); +bool BM_vert_calc_normal_ex(const BMVert *v, const char hflag, float r_no[3]); +bool BM_vert_calc_normal(const BMVert *v, float r_no[3]); void BM_vert_normal_update(BMVert *v) ATTR_NONNULL(); void BM_vert_normal_update_all(BMVert *v) ATTR_NONNULL(); |