Revision: 17702
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17702
Author:   jesterking
Date:     2008-12-03 21:45:26 +0100 (Wed, 03 Dec 2008)

Log Message:
-----------
* check mouse coords in right space.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/interface/interface_ops.c

Modified: 
branches/blender2.5/blender/source/blender/editors/interface/interface_ops.c
===================================================================
--- 
branches/blender2.5/blender/source/blender/editors/interface/interface_ops.c    
    2008-12-03 20:17:12 UTC (rev 17701)
+++ 
branches/blender2.5/blender/source/blender/editors/interface/interface_ops.c    
    2008-12-03 20:45:26 UTC (rev 17702)
@@ -2595,7 +2595,8 @@
        if(BLI_in_rcti(&ar->winrct, x, y)) {
                /* XXX still can be zero */
                if(ar->v2d.mask.xmin!=ar->v2d.mask.xmax) {
-                       return BLI_in_rcti(&ar->v2d.mask, x, y);
+                       /* mask is in different coord space - take that in 
account */
+                       return BLI_in_rcti(&ar->v2d.mask, x-ar->winrct.xmin, 
y-ar->winrct.ymin);
                }
                return 1;
        }


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

Reply via email to