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:
authorCampbell Barton <ideasman42@gmail.com>2013-09-07 02:34:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-07 02:34:29 +0400
commit35cd649c6625b55aad277fdbeaa87cc5d21b65ce (patch)
treedc5a73685f89ea525b40e62534d8af4e9de7fa4b /source/blender/editors/gpencil
parentda2c76d9f7e1a29ad91ab8aaf95bb912800296a4 (diff)
rename cursor setting functions to make modal set/restore more clearly related functions.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index da832554443..255f0b7cfba 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1431,7 +1431,7 @@ static void gpencil_draw_exit(bContext *C, wmOperator *op)
gpencil_undo_finish();
/* restore cursor to indicate end of drawing */
- WM_cursor_restore(CTX_wm_window(C));
+ WM_cursor_modal_restore(CTX_wm_window(C));
/* don't assume that operator data exists at all */
if (p) {
@@ -1764,9 +1764,9 @@ static int gpencil_draw_invoke(bContext *C, wmOperator *op, const wmEvent *event
/* set cursor */
if (p->paintmode == GP_PAINTMODE_ERASER)
- WM_cursor_modal(win, BC_CROSSCURSOR); /* XXX need a better cursor */
+ WM_cursor_modal_set(win, BC_CROSSCURSOR); /* XXX need a better cursor */
else
- WM_cursor_modal(win, BC_PAINTBRUSHCURSOR);
+ WM_cursor_modal_set(win, BC_PAINTBRUSHCURSOR);
/* special hack: if there was an initial event, then we were invoked via a hotkey, and
* painting should start immediately. Otherwise, this was called from a toolbar, in which