diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-01-11 22:52:03 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-01-11 22:52:03 +0300 |
commit | 393f53fc920e6a99cbe7e4efe51daa8a90ef2384 (patch) | |
tree | f413f2b530df6ac37b273895291c04f09322826e /source/blender/editors/space_view3d/view3d_select.c | |
parent | 491e365514654e14df3afe7e070f6574bf0e8d6e (diff) |
[#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).
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_select.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; |