diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-13 03:58:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-13 03:58:05 +0400 |
commit | 30d129593b3aa183c4a6bc78dc783867aa54da78 (patch) | |
tree | 623ffcbad4074dd10e8f7ef4d4e96c4adf8636d3 /source/blender/editors/uvedit/uvedit_draw.c | |
parent | 8d0dc29aba218a03a6264bf29867cbcc03951037 (diff) |
non functional changes & de-duplicate yet another face center function
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_draw.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c index 539c7cada7a..8f4a8ef540f 100644 --- a/source/blender/editors/uvedit/uvedit_draw.c +++ b/source/blender/editors/uvedit/uvedit_draw.c @@ -202,7 +202,7 @@ static void draw_uvs_stretch(SpaceImage *sima, Scene *scene, BMEditMesh *em, MTe poly_copy_aspect(tf_uvorig, tf_uv, aspx, aspy, efa->len); - totarea += BM_face_area(efa); + totarea += BM_Compute_Face_Area(em->bm, efa); //totuvarea += tf_area(tf, efa->v4!=0); totuvarea += poly_uv_area(tf_uv, efa->len); @@ -234,7 +234,7 @@ static void draw_uvs_stretch(SpaceImage *sima, Scene *scene, BMEditMesh *em, MTe else { BM_ITER(efa, &iter, em->bm, BM_FACES_OF_MESH, NULL) { if(BM_TestHFlag(efa, BM_TMP_TAG)) { - area = BM_face_area(efa) / totarea; + area = BM_Compute_Face_Area(em->bm, efa) / totarea; BLI_array_empty(tf_uv); BLI_array_empty(tf_uvorig); |