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>2019-03-13 19:13:37 +0300
committerAntonioya <blendergit@gmail.com>2019-03-13 19:13:53 +0300
commitf990a1a6cc477ebbe85b4df281afbcda7b9633a1 (patch)
tree6ceb6dfbbc37401da22e428359b693ede53fa3b0 /source/blender
parent107c94c338a7b58acd9627fe85ec5d5bbdf36803 (diff)
T62446: Mouse cursor disappears on Grease Pencil stroke
Before the cursor was only visible after the cursor moves over side areas, but not in viewport area. Now, as soon the drawing is completed, the cursor is reset in order to get again the icon in the viewport.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 21c27bc3aeb..7429c142ec4 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -2392,6 +2392,8 @@ static void gpencil_draw_exit(bContext *C, wmOperator *op)
gpencil_undo_finish();
/* cleanup */
+ WM_cursor_modal_set(p->win, CURSOR_STD);
+
gp_paint_cleanup(p);
gp_session_cleanup(p);
ED_gpencil_toggle_brush_cursor(C, true, NULL);