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>2020-08-11 08:11:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-08-11 08:11:31 +0300
commit23a6b5d91e942d90badeaf9ab64cf8ea3b4219a1 (patch)
treee4ded62cdff80338483f1d8a8f063024c0607eb4 /source/blender/editors/mesh/meshtools.c
parentfc5ff997709bdc5ec458647eb8db0a6eced670a2 (diff)
BMesh: add UV calculate center call
Move uv_poly_center to BM_face_uv_calc_center_median as it was only defined in uvedit_intern.h
Diffstat (limited to 'source/blender/editors/mesh/meshtools.c')
-rw-r--r--source/blender/editors/mesh/meshtools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/meshtools.c b/source/blender/editors/mesh/meshtools.c
index 4d84db9b35b..964a43dead3 100644
--- a/source/blender/editors/mesh/meshtools.c
+++ b/source/blender/editors/mesh/meshtools.c
@@ -1063,7 +1063,7 @@ static float *editmesh_get_mirror_uv(
BMFace *efa;
BM_ITER_MESH (efa, &iter, em->bm, BM_FACES_OF_MESH) {
- uv_poly_center(efa, cent, cd_loop_uv_offset);
+ BM_face_uv_calc_center_median(efa, cd_loop_uv_offset, cent);
if ((fabsf(cent[0] - cent_vec[0]) < 0.001f) && (fabsf(cent[1] - cent_vec[1]) < 0.001f)) {
BMIter liter;