Revision: 25440
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25440
Author:   blendix
Date:     2009-12-17 16:39:36 +0100 (Thu, 17 Dec 2009)

Log Message:
-----------
Fix #19713: Lasso select + occlude background geometry does not work.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/view3d_select.c

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_select.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_select.c   
2009-12-17 14:45:47 UTC (rev 25439)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_select.c   
2009-12-17 15:39:36 UTC (rev 25440)
@@ -461,8 +461,10 @@
        data.done = 0;
        data.pass = 0;
 
+       /* workaround: init mats first, EM_mask_init_backbuf_border can change
+          view matrix to pixel space, breaking edge select with backbuf .. */
+       ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's 
screen/vert projection */
        bbsel= EM_mask_init_backbuf_border(vc, mcords, moves, rect.xmin, 
rect.ymin, rect.xmax, rect.ymax);
-       ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's 
screen/vert projection */
        
        if(ts->selectmode & SCE_SELECT_VERTEX) {
                if (bbsel) {
@@ -1352,8 +1354,8 @@
                EM_deselect_all(vc->em);
        }
 
+       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);
-       ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's 
screen/vert projection */
 
        if(ts->selectmode & SCE_SELECT_VERTEX) {
                if (bbsel) {


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to