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)
This commit is contained in:
@@ -683,12 +683,12 @@ int wm_operator_invoke(bContext *C, wmOperatorType *ot, wmEvent *event, PointerR
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(wrap) {
|
if(wrap) {
|
||||||
ARegion *ar= CTX_wm_region(C);
|
ScrArea *sa= CTX_wm_area(C);
|
||||||
if(ar) {
|
if(sa) {
|
||||||
bounds[0]= ar->winrct.xmin;
|
bounds[0]= sa->totrct.xmin;
|
||||||
bounds[1]= ar->winrct.ymax;
|
bounds[1]= sa->totrct.ymax;
|
||||||
bounds[2]= ar->winrct.xmax;
|
bounds[2]= sa->totrct.xmax;
|
||||||
bounds[3]= ar->winrct.ymin;
|
bounds[3]= sa->totrct.ymin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user