From 780f0f646da1aac01dc3164fd7d493426aca9e19 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Fri, 14 Dec 2018 16:45:57 +0100 Subject: GP: Rename CTX and OB modes Part of T59335. --- source/blender/editors/undo/ed_undo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/undo') diff --git a/source/blender/editors/undo/ed_undo.c b/source/blender/editors/undo/ed_undo.c index 8b4292dedbd..dd459749029 100644 --- a/source/blender/editors/undo/ed_undo.c +++ b/source/blender/editors/undo/ed_undo.c @@ -181,7 +181,7 @@ static int ed_undo_step(bContext *C, int step, const char *undoname, ReportList Object *obact = CTX_data_active_object(C); if (obact && (obact->type == OB_GPENCIL)) { /* set cursor */ - if (ELEM(obact->mode, OB_MODE_GPENCIL_PAINT, OB_MODE_GPENCIL_SCULPT, OB_MODE_GPENCIL_WEIGHT)) { + if (ELEM(obact->mode, OB_MODE_PAINT_GPENCIL, OB_MODE_SCULPT_GPENCIL, OB_MODE_WEIGHT_GPENCIL)) { ED_gpencil_toggle_brush_cursor(C, true, NULL); } else { -- cgit v1.2.3