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>2006-04-04 00:15:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-04-04 00:15:24 +0400
commit1919391b2456133dc4e57a394eaaf83f58d52fdf (patch)
treeb9891a2e685f3e24516b2a99c409700c36396b28 /release/scripts/mesh_boneweight_copy.py
parentcc8051eeadc09228fd5176dc145b0bc0caa2f89b (diff)
Fixed small but that was causing an eternal loop.
Diffstat (limited to 'release/scripts/mesh_boneweight_copy.py')
-rwxr-xr-xrelease/scripts/mesh_boneweight_copy.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/mesh_boneweight_copy.py b/release/scripts/mesh_boneweight_copy.py
index c08f2b9c892..ca1841cb1d8 100755
--- a/release/scripts/mesh_boneweight_copy.py
+++ b/release/scripts/mesh_boneweight_copy.py
@@ -38,7 +38,7 @@ def copy_bone_influences(_from, _to):
while _range > 3:
half= _range/2
z= vecs[upidx-half][1].z
- if z > seek_vec_z:
+ if z >= seek_vec_z:
upidx= upidx-half
elif z < seek_vec_z:
loidx= loidx+half
@@ -107,7 +107,6 @@ def copy_bone_influences(_from, _to):
add_ = Mesh.AssignModes.ADD
for i, co in enumerate(world_verts_to):
-
from_idx= getSnapIdx(co, world_verts_from)
from_infs= me_from.getVertexInfluences(from_idx)