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_interp.c
parent02608d257a9358e3bd756f1db8c8f53484c34c37 (diff)
add asserts to ensure face normal is up to date.
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_interp.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_interp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_interp.c b/source/blender/bmesh/intern/bmesh_interp.c
index 3e8a49a01fc..70d1d4c81df 100644
--- a/source/blender/bmesh/intern/bmesh_interp.c
+++ b/source/blender/bmesh/intern/bmesh_interp.c
@@ -205,6 +205,7 @@ void BM_face_interp_from_face(BMesh *bm, BMFace *target, BMFace *source, const b
int i;
/* convert the 3d coords into 2d for projection */
+ BLI_assert(BM_face_is_normal_valid(source));
axis_dominant_v3_to_m3(axis_mat, source->no);
i = 0;
@@ -638,6 +639,7 @@ void BM_loop_interp_from_face(BMesh *bm, BMLoop *target, BMFace *source,
int i;
/* convert the 3d coords into 2d for projection */
+ BLI_assert(BM_face_is_normal_valid(source));
axis_dominant_v3_to_m3(axis_mat, source->no);
i = 0;
@@ -678,6 +680,7 @@ void BM_vert_interp_from_face(BMesh *bm, BMVert *v, BMFace *source)
int i;
/* convert the 3d coords into 2d for projection */
+ BLI_assert(BM_face_is_normal_valid(source));
axis_dominant_v3_to_m3(axis_mat, source->no);
i = 0;