Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2010-12-15 18:28:03 +0300
committerTon Roosendaal <ton@blender.org>2010-12-15 18:28:03 +0300
commit95f205ed5c81b3afcb678dd48253d69e88a19f1c (patch)
treec8c3fb77bf65db86f11cae46815353f59b4ddb8c /source/blender/windowmanager
parent0efdb860f195edc5899d4698f62d21dc0599ab83 (diff)
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)
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 08b50ef9d3f..77dfa015d68 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -683,12 +683,12 @@ int wm_operator_invoke(bContext *C, wmOperatorType *ot, wmEvent *event, PointerR
}
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;
}
}