diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-01-16 05:49:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-01-16 05:49:58 +0300 |
commit | dced690915be39592561b889c5e2ba76fd62c371 (patch) | |
tree | 8f9633e96a92627c16dbfbe3642ff5f2e87dd0df /release/scripts/mesh_skin.py | |
parent | feb63d7d3baf10e5901b18c4d0dbbe586f5a104f (diff) |
wasnt working for mixed modes
Diffstat (limited to 'release/scripts/mesh_skin.py')
-rw-r--r-- | release/scripts/mesh_skin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/mesh_skin.py b/release/scripts/mesh_skin.py index 2ee5798a65c..39738d23ae7 100644 --- a/release/scripts/mesh_skin.py +++ b/release/scripts/mesh_skin.py @@ -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] @@ -282,6 +282,7 @@ def getSelectedEdges(me, ob): Blender.Mesh.Mode(MESH_MODE) return [ ed_data[0] for ed_data in edge_dict.itervalues() if ed_data[1] == 1 ] + def getVertLoops(selEdges, me): ''' |