[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33685] trunk/blender/source/blender/ windowmanager/intern/wm_event_system.c: Bugfix 21333

Ton Roosendaal ton at blender.org
Wed Dec 15 16:28:03 CET 2010


Revision: 33685
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33685
Author:   ton
Date:     2010-12-15 16:28:03 +0100 (Wed, 15 Dec 2010)

Log Message:
-----------
Bugfix 21333

"Continuous grab": the boundary is now set to Area (editor), making it work
for operators started in other regions (like toolbar, or in quad view case)

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/intern/wm_event_system.c

Modified: trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_event_system.c	2010-12-15 13:08:34 UTC (rev 33684)
+++ trunk/blender/source/blender/windowmanager/intern/wm_event_system.c	2010-12-15 15:28:03 UTC (rev 33685)
@@ -683,12 +683,12 @@
 				}
 
 				if(wrap) {
-					ARegion *ar= CTX_wm_region(C);
-					if(ar) {
-						bounds[0]= ar->winrct.xmin;
-						bounds[1]= ar->winrct.ymax;
-						bounds[2]= ar->winrct.xmax;
-						bounds[3]= ar->winrct.ymin;
+					ScrArea *sa= CTX_wm_area(C);
+					if(sa) {
+						bounds[0]= sa->totrct.xmin;
+						bounds[1]= sa->totrct.ymax;
+						bounds[2]= sa->totrct.xmax;
+						bounds[3]= sa->totrct.ymin;
 					}
 				}
 





More information about the Bf-blender-cvs mailing list