diff options
-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; |