diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-01-16 02:37:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-01-16 02:37:34 +0300 |
commit | 72de9a64c9221320b3ec2717faba20b18f501a72 (patch) | |
tree | a587cd33c0171e95538ed4bc4136ffc5704d1fc7 /release/scripts/mesh_skin.py | |
parent | 09bd5599393280536d0680ef3d879dd51f37ba2d (diff) |
was missing a check for the end edge that made skinning it raise an error.
Diffstat (limited to 'release/scripts/mesh_skin.py')
-rw-r--r-- | release/scripts/mesh_skin.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/mesh_skin.py b/release/scripts/mesh_skin.py index ac1f62312dc..2ee5798a65c 100644 --- a/release/scripts/mesh_skin.py +++ b/release/scripts/mesh_skin.py @@ -233,7 +233,7 @@ class edgeLoop(object): while step_count<=step or smallestEdge==None: step_count+=1 if not currentEdge.removed: # 0 or -1 will not be accepted - if currentEdge.angle<bestAng: + if currentEdge.angle<bestAng and not currentEdge.fake: smallestEdge= currentEdge bestAng= currentEdge.angle @@ -440,19 +440,23 @@ def skin2EdgeLoops(eloop1, eloop2, me, ob, MODE): # Make sure the fake edges are at the start. for i, edloop in enumerate((eloop1, eloop2)): + # print "LOOPO" if edloop.edges[0].fake: # alredy at the start + #print "A" pass elif edloop.edges[-1].fake: # put the end at the start edloop.edges.insert(0, edloop.edges.pop()) + #print "B" else: for j, ed in enumerate(edloop.edges): if ed.fake: + #print "C" edloop.edges = edloop.edges = edloop.edges[j:] + edloop.edges[:j] break - + # print "DONE" ed1, ed2 = eloop1.edges[0], eloop2.edges[0] if not ed1.fake or not ed2.fake: |