Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-11-10 18:30:06 +0300
committerAntonioya <blendergit@gmail.com>2018-11-10 18:30:37 +0300
commit2ff435adb4a334746ccefd1d97fda4df0448d65a (patch)
treed4e3ed31233269cb25b070e4905a8e8a197c89a4 /source/blender/editors/gpencil/gpencil_utils.c
parentfcf6f78d194289c3cc7a5a7a18efcbd24571c822 (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.c6
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, &region_rect);
- return BLI_rcti_isect_pt_v(&region_rect, mval);
+ return BLI_rcti_isect_pt_v(&ar->winrct, mval);
}
else {
return false;