diff options
author | Ton Roosendaal <ton@blender.org> | 2010-11-10 21:00:51 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-11-10 21:00:51 +0300 |
commit | 3b5ad5171956945554da336a00538ca545c021d3 (patch) | |
tree | c12e2555c74d0efdf3bda4dd88bc7a519f1f1416 /source/blender/editors/mesh/editmesh_mods.c | |
parent | 8df02539ba28ef93821740c4837901392eb18a98 (diff) |
Bugfix #24524
Mesh loop tools allowed to be invoked outside 3d region (properties).
That caused crash, it needs 3d view code to work.
Diffstat (limited to 'source/blender/editors/mesh/editmesh_mods.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_mods.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_mods.c b/source/blender/editors/mesh/editmesh_mods.c index d83f25299be..c9934275f3f 100644 --- a/source/blender/editors/mesh/editmesh_mods.c +++ b/source/blender/editors/mesh/editmesh_mods.c @@ -2114,7 +2114,7 @@ void MESH_OT_loop_select(wmOperatorType *ot) /* api callbacks */ ot->invoke= mesh_select_loop_invoke; - ot->poll= ED_operator_editmesh_view3d; + ot->poll= ED_operator_editmesh_region_view3d; /* flags */ ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; @@ -2220,7 +2220,7 @@ static int mesh_shortest_path_select_invoke(bContext *C, wmOperator *UNUSED(op), static int mesh_shortest_path_select_poll(bContext *C) { - if(ED_operator_editmesh_view3d(C)) { + if(ED_operator_editmesh_region_view3d(C)) { Object *obedit= CTX_data_edit_object(C); EditMesh *em= BKE_mesh_get_editmesh(obedit->data); return (em->selectmode & SCE_SELECT_EDGE); @@ -2545,7 +2545,7 @@ void MESH_OT_select_linked_pick(wmOperatorType *ot) /* api callbacks */ ot->invoke= select_linked_pick_invoke; - ot->poll= ED_operator_editmesh_view3d; + ot->poll= ED_operator_editmesh_region_view3d; /* flags */ ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; |