diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-03-26 14:56:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-03-26 14:56:41 +0300 |
commit | 6184c07474f03c2fb815e28264a35881bace12d0 (patch) | |
tree | dcf800750af096801f793a460d3c6893567e8cd1 /source/blender/src/editmesh.c | |
parent | 2a47d029751fc14583d7b44f4e8fc84377b15f89 (diff) |
fix for [#8732] Unwrap Project from View not matching View
the active face could be unselected. now unwrapping with no UV layer will assign the current image to the selected faces.
Diffstat (limited to 'source/blender/src/editmesh.c')
-rw-r--r-- | source/blender/src/editmesh.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/source/blender/src/editmesh.c b/source/blender/src/editmesh.c index 34d3bc89bdb..edf87d620b0 100644 --- a/source/blender/src/editmesh.c +++ b/source/blender/src/editmesh.c @@ -957,16 +957,22 @@ void make_editMesh() efa->flag= mface->flag & ~ME_HIDE; /* select and hide face flag */ - if(mface->flag & ME_FACE_SEL) { + if(mface->flag & ME_HIDE) { + efa->h= 1; + /* dont allow hidden and selected */ + } else if(mface->flag & ME_FACE_SEL) { efa->f |= SELECT; + + /* only allow selected face to be active */ + if (a==me->act_face) { + EM_set_actFace(efa); + } + + if(FACESEL_PAINT_TEST) { + EM_select_face(efa, 1); /* flush down */ + } } - if(mface->flag & ME_HIDE) efa->h= 1; - - if((FACESEL_PAINT_TEST) && (efa->f & SELECT)) - EM_select_face(efa, 1); /* flush down */ - if (a==me->act_face) - em->act_face = efa; } } } |