bugfix [#23995] Do loop cuts from the space bar search while in the properties panel crashes blender.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user