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-23 05:13:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-08-23 05:13:48 +0300
commit2cf930adf3e26c2431848f28fe211fdbb576a8a3 (patch)
tree887b1b006dc23eadbcdc95440d3f8e62cdef5894 /source/blender/editors/uvedit
parent010c1370aff680ad2c0e91b4a8b9718a58549cb0 (diff)
Cleanup: remove unused UvNearestHit struct members
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r--source/blender/editors/uvedit/uvedit_intern.h3
-rw-r--r--source/blender/editors/uvedit/uvedit_select.c8
2 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/editors/uvedit/uvedit_intern.h b/source/blender/editors/uvedit/uvedit_intern.h
index 5a510aaf945..306f8a2c561 100644
--- a/source/blender/editors/uvedit/uvedit_intern.h
+++ b/source/blender/editors/uvedit/uvedit_intern.h
@@ -42,9 +42,6 @@ typedef struct UvNearestHit {
/** Always set if we have a hit. */
struct BMFace *efa;
struct BMLoop *l;
- struct MLoopUV *luv, *luv_next;
- /** Index of loop within face. */
- int lindex;
/** Needs to be set before calling nearest functions. */
float dist_sq;
} UvNearestHit;
diff --git a/source/blender/editors/uvedit/uvedit_select.c b/source/blender/editors/uvedit/uvedit_select.c
index 149c5cf1f96..cb3b32bcfee 100644
--- a/source/blender/editors/uvedit/uvedit_select.c
+++ b/source/blender/editors/uvedit/uvedit_select.c
@@ -671,9 +671,6 @@ bool uv_find_nearest_edge(Scene *scene, Object *obedit, const float co[2], UvNea
hit->efa = efa;
hit->l = l;
- hit->luv = luv;
- hit->luv_next = luv_next;
- hit->lindex = i;
hit->dist_sq = dist_test_sq;
found = true;
@@ -713,7 +710,6 @@ bool uv_find_nearest_face(Scene *scene, Object *obedit, const float co[2], UvNea
if (uv_find_nearest_edge(scene, obedit, co, &hit)) {
hit.dist_sq = dist_sq_init;
hit.l = NULL;
- hit.luv = hit.luv_next = NULL;
BMIter iter;
BMFace *efa;
@@ -783,7 +779,6 @@ bool uv_find_nearest_vert(Scene *scene,
hit.dist_sq = dist_sq_init;
hit.l = NULL;
- hit.luv = hit.luv_next = NULL;
BMEditMesh *em = BKE_editmesh_from_object(obedit);
BMFace *efa;
@@ -822,10 +817,7 @@ bool uv_find_nearest_vert(Scene *scene,
hit.dist_sq = dist_test_sq;
hit.l = l;
- hit.luv = luv;
- hit.luv_next = BM_ELEM_CD_GET_VOID_P(l->next, cd_loop_uv_offset);
hit.efa = efa;
- hit.lindex = i;
found = true;
}
}