Skip to content

Commit

Permalink
Fixed bug caused by edgekeys not being sorted (highest vertex index c…
Browse files Browse the repository at this point in the history
…ould come first)
  • Loading branch information
Crouch committed May 22, 2012
1 parent 9636938 commit aa8b295
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mesh_looptools.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
bl_info = {
'name': "LoopTools",
'author': "Bart Crouch",
'version': (4, 0, 0),
'version': (4, 0, 1),
'blender': (2, 6, 3),
'location': "View3D > Toolbar and View3D > Specials (W-key)",
'warning': "",
Expand Down Expand Up @@ -394,12 +394,12 @@ def dict_vert_verts(edge_keys):

# return the edgekey ([v1.index, v2.index]) of a bmesh edge
def edgekey(edge):
return((edge.verts[0].index, edge.verts[1].index))
return(tuple(sorted([edge.verts[0].index, edge.verts[1].index])))


# returns the edgekeys of a bmesh face
def face_edgekeys(face):
return([(edge.verts[0].index, edge.verts[1].index) for \
return([tuple(sorted([edge.verts[0].index, edge.verts[1].index])) for \
edge in face.edges])


Expand Down

0 comments on commit aa8b295

Please sign in to comment.