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>2018-09-19 02:54:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-19 02:54:36 +0300
commit900b7127ebba9b5d5fc14799191fe746acf06b34 (patch)
tree3f602350fab010a8c5bac89dda62393965996409 /source/blender/editors/include/ED_uvedit.h
parente6766287d60fbcd4778779e244831cfbd3fd27a1 (diff)
UV Snap: minor uv-nearest optimizations
- Pass in the snap distance (to avoid comparisons in the multi-object version). - Loop directly over BMLoop's (without using the iterator). - Use squared distance instead of manhattan.
Diffstat (limited to 'source/blender/editors/include/ED_uvedit.h')
-rw-r--r--source/blender/editors/include/ED_uvedit.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/include/ED_uvedit.h b/source/blender/editors/include/ED_uvedit.h
index efe294d621e..433c7c7fa48 100644
--- a/source/blender/editors/include/ED_uvedit.h
+++ b/source/blender/editors/include/ED_uvedit.h
@@ -110,11 +110,12 @@ void uvedit_uv_select_disable(
const int cd_loop_uv_offset);
bool ED_uvedit_nearest_uv(
- struct Scene *scene, struct Object *obedit, struct Image *ima,
- const float co[2], float r_uv[2]);
+ struct Scene *scene, struct Object *obedit, struct Image *ima, const float co[2],
+ float *dist_sq, float r_uv[2]);
bool ED_uvedit_nearest_uv_multi(
- struct Scene *scene, struct Image *ima, struct Object **objects_edit,
- const uint objects_len, const float co[2], float r_uv[2]);
+ struct Scene *scene, struct Image *ima,
+ struct Object **objects, const uint objects_len, const float co[2],
+ float *dist_sq, float r_uv[2]);
void ED_uvedit_get_aspect(struct Scene *scene, struct Object *ob, struct BMesh *em, float *aspx, float *aspy);