diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-20 06:03:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-03 14:49:49 +0300 |
commit | ef5b7d34a12975a6c2a4ad587dc1fff27164a024 (patch) | |
tree | d5c8082084f71047eacb73dfddb29883a02d90fa /source/blender/editors/uvedit/uvedit_draw.c | |
parent | 426616da43baf11453e26aa1201fedb742724bde (diff) |
Cleanup: redundant casts
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 15be6ab3b78..fecacd07997 100644 --- a/source/blender/editors/uvedit/uvedit_draw.c +++ b/source/blender/editors/uvedit/uvedit_draw.c @@ -201,7 +201,7 @@ static void draw_uvs_stretch(SpaceImage *sima, Scene *scene, BMEditMesh *em, MTe uv_poly_copy_aspect(tf_uvorig, tf_uv, aspx, aspy, efa->len); totarea += BM_face_calc_area(efa); - totuvarea += area_poly_v2((const float (*)[2])tf_uv, efa->len); + totuvarea += area_poly_v2(tf_uv, efa->len); if (uvedit_face_visible_test(scene, ima, efa, tf)) { BM_elem_flag_enable(efa, BM_ELEM_TAG); @@ -244,7 +244,7 @@ static void draw_uvs_stretch(SpaceImage *sima, Scene *scene, BMEditMesh *em, MTe uv_poly_copy_aspect(tf_uvorig, tf_uv, aspx, aspy, efa->len); - uvarea = area_poly_v2((const float (*)[2])tf_uv, efa->len) / totuvarea; + uvarea = area_poly_v2(tf_uv, efa->len) / totuvarea; if (area < FLT_EPSILON || uvarea < FLT_EPSILON) areadiff = 1.0f; |