bugfix [#23995] Do loop cuts from the space bar search while in the properties panel...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 27 Sep 2010 05:44:15 +0000 (05:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 27 Sep 2010 05:44:15 +0000 (05:44 +0000)
source/blender/editors/include/ED_screen.h
source/blender/editors/mesh/editmesh_mods.c
source/blender/editors/mesh/loopcut.c
source/blender/editors/screen/screen_ops.c

index 3478447..8533de7 100644 (file)
@@ -141,6 +141,7 @@ int         ED_operator_object_active(struct bContext *C);
 int            ED_operator_object_active_editable(struct bContext *C);
 int            ED_operator_editmesh(struct bContext *C);
 int            ED_operator_editmesh_view3d(struct bContext *C);
+int            ED_operator_editmesh_region_view3d(struct bContext *C);
 int            ED_operator_editarmature(struct bContext *C);
 int            ED_operator_editcurve(struct bContext *C);
 int            ED_operator_editsurf(struct bContext *C);
index 7316e24..799cca2 100644 (file)
@@ -2105,7 +2105,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;
index 13538a6..7f1a7d0 100644 (file)
@@ -506,7 +506,7 @@ void MESH_OT_loopcut (wmOperatorType *ot)
        ot->invoke= ringcut_invoke;
        ot->modal= ringcut_modal;
        ot->cancel= ringcut_cancel;
-       ot->poll= ED_operator_editmesh_view3d;
+       ot->poll= ED_operator_editmesh_region_view3d;
        
        /* flags */
        ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO|OPTYPE_BLOCKING;
index 363e8a2..e5f20e3 100644 (file)
@@ -215,6 +215,11 @@ int ED_operator_editmesh_view3d(bContext *C)
        return ED_operator_editmesh(C) && ED_operator_view3d_active(C);
 }
 
+int ED_operator_editmesh_region_view3d(bContext *C)
+{
+       return ED_operator_editmesh(C) && CTX_wm_region_view3d(C);
+}
+
 int ED_operator_editarmature(bContext *C)
 {
        Object *obedit= CTX_data_edit_object(C);