diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-19 12:04:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-19 12:04:12 +0400 |
commit | 21c08954668d0acf26db26e66777b84f6c6c17d1 (patch) | |
tree | 5d36fefddfdb75acab223d1c9fd9799cc4c4510d /release/scripts | |
parent | 250cdd5e52dcb46c681fa5fe7935c670d5969977 (diff) |
poll function for edge loop delete.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 75c5ef849ad..18450ebe316 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -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() |