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/uvcalc_lightmap.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/uvcalc_lightmap.py')
-rw-r--r-- | release/scripts/uvcalc_lightmap.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/release/scripts/uvcalc_lightmap.py b/release/scripts/uvcalc_lightmap.py index 64eb1bb4e75..a4269149203 100644 --- a/release/scripts/uvcalc_lightmap.py +++ b/release/scripts/uvcalc_lightmap.py @@ -221,12 +221,9 @@ PREF_MARGIN_DIV= 512): else: face_groups = [] - - SEL_FLAG = Mesh.FaceFlags.SELECT - for me in meshes: if PREF_SEL_ONLY: - faces = [f for f in me.faces if f.flag & SEL_FLAG] + faces = [f for f in me.faces if f.sel] else: faces = list(me.faces) @@ -239,8 +236,6 @@ PREF_MARGIN_DIV= 512): me.addUVLayer('lightmap') me.activeUVLayer = 'lightmap' - del SEL_FLAG - for face_sel in face_groups: print "\nStarting unwrap" |