poll function for edge loop delete.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 19 Jul 2012 08:04:12 +0000 (08:04 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 19 Jul 2012 08:04:12 +0000 (08:04 +0000)
release/scripts/startup/bl_operators/wm.py

index 75c5ef849ad5d736c028916049577b32e4b27e4b..18450ebe3162af158aaf0ff3da584a4a9cd978bf 100644 (file)
@@ -36,6 +36,10 @@ class MESH_OT_delete_edgeloop(Operator):
     bl_idname = "mesh.delete_edgeloop"
     bl_label = "Delete Edge Loop"
 
+    @classmethod
+    def poll(cls, context):
+        return bpy.ops.transform.edge_slide.poll()
+
     def execute(self, context):
         if 'FINISHED' in bpy.ops.transform.edge_slide(value=1.0):
             bpy.ops.mesh.select_more()