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/vertexpaint_selfshadow_ao.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/vertexpaint_selfshadow_ao.py')
-rw-r--r--release/scripts/vertexpaint_selfshadow_ao.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/vertexpaint_selfshadow_ao.py b/release/scripts/vertexpaint_selfshadow_ao.py
index 31306ecaef8..c083bc9e8b0 100644
--- a/release/scripts/vertexpaint_selfshadow_ao.py
+++ b/release/scripts/vertexpaint_selfshadow_ao.py
@@ -119,9 +119,9 @@ def vertexFakeAO(me, PREF_BLUR_ITERATIONS, PREF_BLUR_RADIUS, PREF_MIN_EDLEN, PRE
tone_range= max_tone-min_tone
if max_tone==min_tone:
return
- SELFLAG= Mesh.FaceFlags.SELECT
+
for f in me.faces:
- if not PREF_SEL_ONLY or f.flag & SELFLAG:
+ if not PREF_SEL_ONLY or f.sel:
f_col= f.col
for i, v in enumerate(f):
col= f_col[i]