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:
authorCharlie Jolly <mistajolly@gmail.com>2019-11-06 19:53:36 +0300
committerCharlie Jolly <mistajolly@gmail.com>2019-11-06 19:53:36 +0300
commit7ef03eae20c8613f52b4cfca3919b9a871860f3e (patch)
treee78971d0c9128134a21055e287256c1f19bf7821 /source/blender/editors/gpencil
parent46aeffc5b6ef49ef841486294bd1d15dcd845492 (diff)
Fix T71336: GPencil: Wrong mouse cursor
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c3
1 files changed, 2 insertions, 1 deletions
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);
}