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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-11 12:37:38 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-11 12:37:38 +0400
commite5579ac505d9947c71e816593ea77150c89ff430 (patch)
tree7fc5ae1c6a8a38a2017dfcf500784f44cd5270a6
parentfe7f354daa142edef5ad8da0a4527bab086055a9 (diff)
Fix #30895: uv editor snap selected to adjacent unselected not working correctly,
was apply to unselected uvs too.
-rw-r--r--source/blender/editors/uvedit/uvedit_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index bacee2e0a76..96511ed2bac 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -2762,7 +2762,7 @@ static int snap_uvs_to_adjacent_unselected(Scene *scene, Image *ima, Object *obe
BM_ITER(f, &iter, bm, BM_FACES_OF_MESH, NULL) {
if (BM_elem_flag_test(f, BM_ELEM_TAG)) { /* face: visible */
BM_ITER(l, &liter, bm, BM_LOOPS_OF_FACE, f) {
- if (BM_elem_flag_test(f, BM_ELEM_TAG)) { /* loop: selected*/
+ if (BM_elem_flag_test(l, BM_ELEM_TAG)) { /* loop: selected*/
float uv[2] = {0.0f, 0.0f};
int uv_tot = 0;