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/faceselect_same_weights.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/faceselect_same_weights.py')
-rw-r--r--release/scripts/faceselect_same_weights.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/release/scripts/faceselect_same_weights.py b/release/scripts/faceselect_same_weights.py
index 0aa9d2ffb6d..b8d50cf09b6 100644
--- a/release/scripts/faceselect_same_weights.py
+++ b/release/scripts/faceselect_same_weights.py
@@ -40,8 +40,6 @@ Select same weights as the active face on the active group.
from Blender import Scene, Draw, Mesh
import BPyMesh
-SEL_FLAG = Mesh.FaceFlags['SELECT']
-
def selSameWeights(me, PREF_TOLERENCE):
# Check for missing data
@@ -76,7 +74,7 @@ def selSameWeights(me, PREF_TOLERENCE):
weight_from, weight_range_from = get_face_weight(act_face)
for f in me.faces:
- if (not f.flag & SEL_FLAG) and (not f.hide) and f != act_face:
+ if (not f.sel) and f != act_face:
weight, weight_range = get_face_weight(f)
# Compare the 2 faces weight difference and difference in their contrast.
@@ -84,7 +82,6 @@ def selSameWeights(me, PREF_TOLERENCE):
abs(weight - weight_from) <= PREF_TOLERENCE and\
abs(weight_range - weight_range_from) <= PREF_TOLERENCE:
f.sel = True
- f.flag |= SEL_FLAG
def main():