From 7ef03eae20c8613f52b4cfca3919b9a871860f3e Mon Sep 17 00:00:00 2001 From: Charlie Jolly Date: Wed, 6 Nov 2019 16:53:36 +0000 Subject: Fix T71336: GPencil: Wrong mouse cursor --- source/blender/editors/gpencil/gpencil_paint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/gpencil') diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index c34e670c872..2a68d93efb4 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -3296,7 +3296,7 @@ static void gpencil_guide_event_handling(bContext *C, /* Enter or exit set center point mode */ if ((event->type == OKEY) && (event->val == KM_RELEASE)) { - if (p->paintmode == GP_PAINTMODE_DRAW && guide->reference_point != GP_GUIDE_REF_OBJECT) { + if ((p->paintmode == GP_PAINTMODE_DRAW) && guide->use_guide && (guide->reference_point != GP_GUIDE_REF_OBJECT)) { add_notifier = true; p->paintmode = GP_PAINTMODE_SET_CP; ED_gpencil_toggle_brush_cursor(C, false, NULL); @@ -3714,6 +3714,7 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event) if (drawmode) { p->status = GP_STATUS_IDLING; p->paintmode = GP_PAINTMODE_DRAW; + WM_cursor_modal_restore(p->win); ED_gpencil_toggle_brush_cursor(C, true, NULL); DEG_id_tag_update(&p->scene->id, ID_RECALC_COPY_ON_WRITE); } -- cgit v1.2.3