diff options
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_islands.cc')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_islands.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/uvedit/uvedit_islands.cc b/source/blender/editors/uvedit/uvedit_islands.cc index 793b72b67de..d28aba9816f 100644 --- a/source/blender/editors/uvedit/uvedit_islands.cc +++ b/source/blender/editors/uvedit/uvedit_islands.cc @@ -349,7 +349,7 @@ int bm_mesh_calc_uv_islands(const Scene *scene, BM_mesh_elem_table_ensure(bm, BM_FACE); int *groups_array = static_cast<int *>( - MEM_mallocN(sizeof(*groups_array) * (size_t)bm->totface, __func__)); + MEM_mallocN(sizeof(*groups_array) * size_t(bm->totface), __func__)); int(*group_index)[2]; @@ -524,7 +524,7 @@ void ED_uvedit_pack_islands_multi(const Scene *scene, island_array[index] = island; if (margin > 0.0f) { - area += (double)sqrtf(box->w * box->h); + area += double(sqrtf(box->w * box->h)); } } |