diff options
author | Antonioya <blendergit@gmail.com> | 2018-11-10 18:30:06 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-11-10 18:30:37 +0300 |
commit | 2ff435adb4a334746ccefd1d97fda4df0448d65a (patch) | |
tree | d4e3ed31233269cb25b070e4905a8e8a197c89a4 /source/blender/editors/gpencil/gpencil_utils.c | |
parent | fcf6f78d194289c3cc7a5a7a18efcbd24571c822 (diff) |
GP: Fix mouse cursor problems
In some situations the check of the windows got false positives and the cursor was hidden by error.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_utils.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_utils.c | 6 |
1 files changed, 1 insertions, 5 deletions
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; |