[Bf-blender-cvs] [2ff435adb4a] blender2.8: GP: Fix mouse cursor problems
Antonioya
noreply at git.blender.org
Sat Nov 10 16:30:47 CET 2018
Commit: 2ff435adb4a334746ccefd1d97fda4df0448d65a
Author: Antonioya
Date: Sat Nov 10 16:30:06 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB2ff435adb4a334746ccefd1d97fda4df0448d65a
GP: Fix mouse cursor problems
In some situations the check of the windows got false positives and the cursor was hidden by error.
===================================================================
M 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;
More information about the Bf-blender-cvs
mailing list