Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-04-29 17:39:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-04-29 17:39:46 +0400
commit99135b0674830528eaed3067c40905af8e4557a9 (patch)
tree604d8d7713c8e8f35111b9cc507f42944eb468f3 /release/scripts/uvcalc_lightmap.py
parent243d1a28c0635a85c2dca9a23e9465b170b0ba3a (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.py7
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"