Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-29 13:12:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-29 13:12:23 +0400
commit1300721d57a17eb34e4a8b785ef93357a75a9fb3 (patch)
tree6f2d40595ed75fa784a78a7cf34eeb5e51a58c8e /source/blender/bmesh/intern/bmesh_polygon.c
parent02608d257a9358e3bd756f1db8c8f53484c34c37 (diff)
add asserts to ensure face normal is up to date.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_polygon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_polygon.c b/source/blender/bmesh/intern/bmesh_polygon.c
index c7772392c8e..eea5ec59674 100644
--- a/source/blender/bmesh/intern/bmesh_polygon.c
+++ b/source/blender/bmesh/intern/bmesh_polygon.c
@@ -1006,6 +1006,8 @@ void BM_face_triangulate(BMesh *bm, BMFace *f,
float *abscoss = BLI_array_alloca(abscoss, f_len_orig);
float mat[3][3];
+ BLI_assert(BM_face_is_normal_valid(f));
+
axis_dominant_v3_to_m3(mat, f->no);
/* copy vertex coordinates to vertspace area */