=bmesh= fixed unlink uv selection bug
authorJoseph Eagar <joeedh@gmail.com>
Mon, 9 May 2011 22:07:31 +0000 (22:07 +0000)
committerJoseph Eagar <joeedh@gmail.com>
Mon, 9 May 2011 22:07:31 +0000 (22:07 +0000)
source/blender/editors/uvedit/uvedit_ops.c

index 10ef3bb2bd01bbad5a532ef89f6c5cad0dab1707..634a99f1dd63b9e1981e53caf66af3af3b1d630a 100644 (file)
@@ -2157,7 +2157,7 @@ static int unlink_selection_exec(bContext *C, wmOperator *op)
                        continue;
 
                BM_ITER(l, &liter, em->bm, BM_LOOPS_OF_FACE, efa) {
-                       luv = CustomData_bmesh_get(&em->bm->pdata, l->head.data, CD_MLOOPUV);
+                       luv = CustomData_bmesh_get(&em->bm->ldata, l->head.data, CD_MLOOPUV);
                        
                        if (!(luv->flag & MLOOPUV_VERTSEL)) {
                                desel = 1;
@@ -2167,7 +2167,7 @@ static int unlink_selection_exec(bContext *C, wmOperator *op)
 
                if (desel) {
                        BM_ITER(l, &liter, em->bm, BM_LOOPS_OF_FACE, efa) {
-                               luv = CustomData_bmesh_get(&em->bm->pdata, l->head.data, CD_MLOOPUV);
+                               luv = CustomData_bmesh_get(&em->bm->ldata, l->head.data, CD_MLOOPUV);
                                luv->flag &= ~MLOOPUV_VERTSEL;
                        }
                }