If you move (with F5) the properties and tools region in 3d viewport to the same side,
the mini-axis and text overlays were drawing in wrong place.
This commit is contained in:
Ton Roosendaal
2013-02-23 14:31:46 +00:00
parent 6a55cd889c
commit 89e0de3c35

View File

@@ -1965,11 +1965,13 @@ void ED_region_visible_rect(ARegion *ar, rcti *rect)
for (; arn; arn = arn->next) {
if (ar != arn && arn->overlap) {
if (BLI_rcti_isect(rect, &arn->winrct, NULL)) {
/* overlap left */
if (rect->xmin == arn->winrct.xmin)
/* overlap left, also check 1 pixel offset (2 regions on one side) */
if ( ABS(rect->xmin - arn->winrct.xmin) < 2)
rect->xmin = arn->winrct.xmax;
/* overlap right */
if (rect->xmax == arn->winrct.xmax)
if ( ABS(rect->xmax - arn->winrct.xmax) < 2)
rect->xmax = arn->winrct.xmin;
}
}