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 /release/scripts/vertexpaint_from_material.py | |
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 'release/scripts/vertexpaint_from_material.py')
-rw-r--r-- | release/scripts/vertexpaint_from_material.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/vertexpaint_from_material.py b/release/scripts/vertexpaint_from_material.py index 6ecde41347d..2df5b7e721f 100644 --- a/release/scripts/vertexpaint_from_material.py +++ b/release/scripts/vertexpaint_from_material.py @@ -53,10 +53,9 @@ def mat2vcol(PREF_SEL_FACES_ONLY, PREF_ACTOB_ONLY, PREF_MULTIPLY_COLOR): matcols= [matcol(mat) for mat in me.materials] len_matcols= len(matcols) - FSEL= Mesh.FaceFlags.SELECT for f in me.faces: - if not PREF_SEL_FACES_ONLY or f.flag & FSEL: + if not PREF_SEL_FACES_ONLY or f.sel: f_mat= f.mat if f_mat < len_matcols: mat= matcols[f.mat] |