wasnt working for mixed modes

This commit is contained in:
Campbell Barton 2007-01-16 02:49:58 +00:00
parent feb63d7d3b
commit dced690915

@ -255,14 +255,14 @@ class edgeLoop(object):
def getSelectedEdges(me, ob):
MESH_MODE= Blender.Mesh.Mode()
if MESH_MODE==Blender.Mesh.SelectModes.EDGE or MESH_MODE==Blender.Mesh.SelectModes.VERTEX:
if MESH_MODE & Blender.Mesh.SelectModes.EDGE or MESH_MODE & Blender.Mesh.SelectModes.VERTEX:
Blender.Mesh.Mode(Blender.Mesh.SelectModes.EDGE)
edges= [ ed for ed in me.edges if ed.sel ]
# print len(edges), len(me.edges)
Blender.Mesh.Mode(MESH_MODE)
return edges
elif MESH_MODE==Blender.Mesh.SelectModes.FACE:
elif MESH_MODE & Blender.Mesh.SelectModes.FACE:
Blender.Mesh.Mode(Blender.Mesh.SelectModes.EDGE)
# value is [edge, face_sel_user_in]
@ -283,6 +283,7 @@ def getSelectedEdges(me, ob):
return [ ed_data[0] for ed_data in edge_dict.itervalues() if ed_data[1] == 1 ]
def getVertLoops(selEdges, me):
'''
return a list of vert loops, closed and open [(loop, closed)...]