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>2016-04-11 13:24:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-04-11 13:27:10 +0300
commit90271e7ff185b3714c40182db953923567933bae (patch)
tree9a223427c42c17bcc0d8a71ce780d572fdb5bb8d /source/blender/editors
parent45a089c1388e0583fbae832a5c24e343a7d752cd (diff)
Fix T48082: Unwrap overwrites face selection
Sync selection option made adding a new UV layer select all edit-mesh faces. Now just select the UV's, ignoring sync-select option.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/uvedit/uvedit_unwrap_ops.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index 9f2b0f1af14..768624b1968 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -145,9 +145,15 @@ static bool ED_uvedit_ensure_uvs(bContext *C, Scene *scene, Object *obedit)
if (ima)
ED_uvedit_assign_image(bmain, scene, obedit, ima, NULL);
- /* select new UV's */
+ /* select new UV's (ignore UV_SYNC_SELECTION in this case) */
BM_ITER_MESH (efa, &iter, em->bm, BM_FACES_OF_MESH) {
- uvedit_face_select_enable(scene, em, efa, false, cd_loop_uv_offset);
+ BMIter liter;
+ BMLoop *l;
+
+ BM_ITER_ELEM (l, &liter, efa, BM_LOOPS_OF_FACE) {
+ MLoopUV *luv = BM_ELEM_CD_GET_VOID_P(l, cd_loop_uv_offset);
+ luv->flag |= MLOOPUV_VERTSEL;
+ }
}
return 1;