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; return false;
} }
else if (ar) { else if (ar) {
rcti region_rect; return BLI_rcti_isect_pt_v(&ar->winrct, mval);
/* Perform bounds check using */
ED_region_visible_rect(ar, &region_rect);
return BLI_rcti_isect_pt_v(&region_rect, mval);
} }
else { else {
return false; return false;