diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-06 20:38:39 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-06 20:38:39 +0300 |
commit | 450d33cc9a795c3ce0b179ae5e7130887ca06e17 (patch) | |
tree | 6e5a4ba6e57b0446c76deabceebecbef0ced731f /source/blender/editors/mesh/loopcut.c | |
parent | 4b2163c1cc53f165545e94f3aef291462aba10ce (diff) |
Loop cut and edge ring select only have an invoke and require view3d, so change poll function to reflect that (and not, you know, crash...).
Diffstat (limited to 'source/blender/editors/mesh/loopcut.c')
-rw-r--r-- | source/blender/editors/mesh/loopcut.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/loopcut.c b/source/blender/editors/mesh/loopcut.c index e12f3c99fcd..72bd4ee3541 100644 --- a/source/blender/editors/mesh/loopcut.c +++ b/source/blender/editors/mesh/loopcut.c @@ -455,7 +455,7 @@ void MESH_OT_edgering_select (wmOperatorType *ot) ot->invoke= ringsel_invoke; ot->modal= ringsel_modal; ot->cancel= ringsel_cancel; - ot->poll= ED_operator_editmesh; + ot->poll= ED_operator_editmesh_view3d; /* flags */ ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING; @@ -474,7 +474,7 @@ void MESH_OT_loopcut (wmOperatorType *ot) ot->invoke= ringcut_invoke; ot->modal= ringsel_modal; ot->cancel= ringsel_cancel; - ot->poll= ED_operator_editmesh; + ot->poll= ED_operator_editmesh_view3d; /* flags */ ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING; |