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-05-10 19:31:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-05-10 19:31:11 +0400
commit6cbc64ce52400fa77dd9e23311ced61a4b0e873e (patch)
treeb157aacff353f5018312036c2727c892dd991a69 /release
parent8f84542c23e3f313174e4cb215de33c06a96d564 (diff)
removed an optimizarion in seeking verts that could cause an eternal loop.
Diffstat (limited to 'release')
-rwxr-xr-xrelease/scripts/mesh_boneweight_copy.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/mesh_boneweight_copy.py b/release/scripts/mesh_boneweight_copy.py
index dd49cb32b2e..fb69e5681ef 100755
--- a/release/scripts/mesh_boneweight_copy.py
+++ b/release/scripts/mesh_boneweight_copy.py
@@ -29,7 +29,8 @@ def copy_bone_influences(_from, _to, PREF_SEL_ONLY, PREF_NO_XCROSS):
upidx= len_vecs-1
loidx= 0
-
+ '''
+ # A lot faster bit can eternal loop
_range=upidx-loidx
# Guess the right index, keep re-adjusting the high and the low.
while _range > 3:
@@ -43,7 +44,7 @@ def copy_bone_influences(_from, _to, PREF_SEL_ONLY, PREF_NO_XCROSS):
_range=upidx-loidx
from_vec_idx= loidx
-
+ '''
# Seek the rest of the way. should only need to seek 2 or 3 items at the most.
while from_vec_idx < len_vecs and vecs[from_vec_idx][1].z < seek_vec_z:
from_vec_idx+=1