diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-04-29 17:39:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-04-29 17:39:46 +0400 |
commit | 99135b0674830528eaed3067c40905af8e4557a9 (patch) | |
tree | 604d8d7713c8e8f35111b9cc507f42944eb468f3 /source/blender/src/editmesh_mods.c | |
parent | 243d1a28c0635a85c2dca9a23e9465b170b0ba3a (diff) |
dont use tface hide or select anymore, since maintaining 2 sets of hide/select data for each face is annoying.
using mface->flag for both.
Also found that the cdDM_drawMappedFaces and cdDM_drawFacesTex_common could get normals mixed up when rendering hidden faces. because hidden/invisible faces used continue without advancing to the next normal.
Diffstat (limited to 'source/blender/src/editmesh_mods.c')
-rw-r--r-- | source/blender/src/editmesh_mods.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/src/editmesh_mods.c b/source/blender/src/editmesh_mods.c index c9190692f1a..b25c9afd3c2 100644 --- a/source/blender/src/editmesh_mods.c +++ b/source/blender/src/editmesh_mods.c @@ -2977,9 +2977,9 @@ static void editmesh_calc_selvert_center(float cent_r[3]) } } -static int tface_is_selected(MTFace *tf) +static int mface_is_selected(MFace *mf) { - return (!(tf->flag & TF_HIDE) && (tf->flag & TF_SELECT)); + return (!(mf->flag & ME_HIDE) && (mf->flag & ME_FACE_SEL)); } /* XXX, code for both these functions should be abstract, @@ -2995,9 +2995,8 @@ void faceselect_align_view_to_selected(View3D *v3d, Mesh *me, int axis) norm[0]= norm[1]= norm[2]= 0.0; for (i=0; i<me->totface; i++) { MFace *mf= ((MFace*) me->mface) + i; - MTFace *tf= ((MTFace*) me->mtface) + i; - if (tface_is_selected(tf)) { + if (mface_is_selected(mf)) { float *v1, *v2, *v3, fno[3]; v1= me->mvert[mf->v1].co; |