diff options
Diffstat (limited to 'source/blender/bmesh/intern')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_query_uv.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/bmesh/intern/bmesh_query_uv.cc b/source/blender/bmesh/intern/bmesh_query_uv.cc index 5a725407c6b..33b2ca7a828 100644 --- a/source/blender/bmesh/intern/bmesh_query_uv.cc +++ b/source/blender/bmesh/intern/bmesh_query_uv.cc @@ -65,7 +65,7 @@ void BM_face_uv_calc_center_median_weighted(const BMFace *f, } while ((l_iter = l_iter->next) != l_first); if (totw != 0.0f) { - mul_v2_fl(r_cent, 1.0f / (float)totw); + mul_v2_fl(r_cent, 1.0f / float(totw)); } /* Reverse aspect. */ r_cent[0] /= aspect[0]; @@ -85,7 +85,7 @@ void BM_face_uv_calc_center_median(const BMFace *f, const int cd_loop_uv_offset, add_v2_v2(r_cent, luv->uv); } while ((l_iter = l_iter->next) != l_first); - mul_v2_fl(r_cent, 1.0f / (float)f->len); + mul_v2_fl(r_cent, 1.0f / float(f->len)); } float BM_face_uv_calc_cross(const BMFace *f, const int cd_loop_uv_offset) |