From 2ff435adb4a334746ccefd1d97fda4df0448d65a Mon Sep 17 00:00:00 2001 From: Antonioya Date: Sat, 10 Nov 2018 16:30:06 +0100 Subject: GP: Fix mouse cursor problems In some situations the check of the windows got false positives and the cursor was hidden by error. --- source/blender/editors/gpencil/gpencil_utils.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source/blender/editors/gpencil/gpencil_utils.c') diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c index ccff027f65d..369a3828c05 100644 --- a/source/blender/editors/gpencil/gpencil_utils.c +++ b/source/blender/editors/gpencil/gpencil_utils.c @@ -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, ®ion_rect); - return BLI_rcti_isect_pt_v(®ion_rect, mval); + return BLI_rcti_isect_pt_v(&ar->winrct, mval); } else { return false; -- cgit v1.2.3