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 3478447b0581cf79f56022a026a88e70dd322e39..8533de75a3cdfe02b896b5cacdc63e6327fa6878 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 7316e24ce65d1f3f31db5340a2f986f19b8eeaf6..799cca2222af4f60a56fd32ed65df9ba26fb2525 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 13538a6f218881a8fddbe35cb44e2ac55e5b32df..7f1a7d0e1fc8f5053c5e96dfa98084615751c51c 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 363e8a2b47c7da9fd93a72f908c744ac1e33ded2..e5f20e3c75a9a6ac1f919315fc7f21aff6f81460 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);