From 0e37b49a2c2f3693db834295262b2f041799c542 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 4 Jan 2010 17:03:44 +0000 Subject: Sculpt: fix, disable border/circle/mouse select operators in sculpt mode. --- source/blender/editors/space_view3d/view3d_select.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/blender/editors/space_view3d/view3d_select.c') diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index 17af631350a..0ed7f4c0d0a 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -1424,6 +1424,8 @@ static int view3d_borderselect_exec(bContext *C, wmOperator *op) else if(obedit==NULL && (obact && obact->mode & OB_MODE_PARTICLE_EDIT)) { return PE_border_select(C, &rect, selecting, extend); } + else if(obedit==NULL && (obact && obact->mode & OB_MODE_SCULPT)) + return OPERATOR_CANCELLED; if(obedit) { if(obedit->type==OB_MESH) { @@ -1689,6 +1691,8 @@ static int view3d_select_invoke(bContext *C, wmOperator *op, wmEvent *event) retval = mouse_mball(C, event->mval, extend); } + else if(obact && obact->mode & OB_MODE_SCULPT) + return OPERATOR_CANCELLED; else if(obact && obact->mode & OB_MODE_PARTICLE_EDIT) return PE_mouse_particles(C, event->mval, extend); else if(obact && paint_facesel_test(obact)) @@ -2012,6 +2016,9 @@ static int view3d_circle_select_exec(bContext *C, wmOperator *op) else return PE_circle_select(C, selecting, mval, (float)radius); } + else if(obact && obact->mode & OB_MODE_SCULPT) { + return OPERATOR_CANCELLED; + } else { Base *base; selecting= selecting?BA_SELECT:BA_DESELECT; -- cgit v1.2.3