Fixed small but that was causing an eternal loop.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 3 Apr 2006 20:15:24 +0000 (20:15 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 3 Apr 2006 20:15:24 +0000 (20:15 +0000)
release/scripts/mesh_boneweight_copy.py

index c08f2b9c892287557d22265fd0e7ea7276f6dc7d..ca1841cb1d87f655f15c24142557baeb70235666 100755 (executable)
@@ -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)