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:
@@ -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, ®ion_rect);
|
|
||||||
return BLI_rcti_isect_pt_v(®ion_rect, mval);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user