GP: Fix mouse cursor problems

In some situations the check of the windows got false positives and the cursor was hidden by error.
This commit is contained in:
Antonioya
2018-11-10 16:30:06 +01:00
parent fcf6f78d19
commit 2ff435adb4

View File

@@ -1452,11 +1452,7 @@ static bool gp_check_cursor_region(bContext *C, int mval[2])
return false;
}
else if (ar) {
rcti region_rect;
/* Perform bounds check using */
ED_region_visible_rect(ar, &region_rect);
return BLI_rcti_isect_pt_v(&region_rect, mval);
return BLI_rcti_isect_pt_v(&ar->winrct, mval);
}
else {
return false;