From 393f53fc920e6a99cbe7e4efe51daa8a90ef2384 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Mon, 11 Jan 2010 19:52:03 +0000 Subject: [#20640] Border/lasso selection zone "translated" when occlude geometry is on Box select for mesh wrongly applied the transformation matrix (it wasn't done for Circle select and that worked correctly). I've just commented and explained the removal, since comments in the matrix setting function seems to indicate that this should be needed (with the call removed, the situations that are noted as problematic still work fine). --- source/blender/editors/space_view3d/view3d_select.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (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 331d3c4fefe..06f257cbb78 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -1361,7 +1361,10 @@ static void do_mesh_box_select(ViewContext *vc, rcti *rect, int select, int exte EM_deselect_all(vc->em); } - ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's screen/vert projection */ + /* XXX Don't think we need this, it break selection of transformed objects. + * Also, it's not done by Circle select and that works fine + */ + //ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's screen/vert projection */ bbsel= EM_init_backbuf_border(vc, rect->xmin, rect->ymin, rect->xmax, rect->ymax); if(ts->selectmode & SCE_SELECT_VERTEX) { @@ -1423,7 +1426,7 @@ static int view3d_borderselect_exec(bContext *C, wmOperator *op) rect.xmax= RNA_int_get(op->ptr, "xmax"); rect.ymax= RNA_int_get(op->ptr, "ymax"); extend = RNA_boolean_get(op->ptr, "extend"); - + if(obedit==NULL && (paint_facesel_test(OBACT))) { face_borderselect(C, obact, &rect, selecting, extend); return OPERATOR_FINISHED; -- cgit v1.2.3