From 35cd649c6625b55aad277fdbeaa87cc5d21b65ce Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 6 Sep 2013 22:34:29 +0000 Subject: rename cursor setting functions to make modal set/restore more clearly related functions. --- source/blender/editors/physics/dynamicpaint_ops.c | 2 +- source/blender/editors/physics/physics_pointcache.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/physics') diff --git a/source/blender/editors/physics/dynamicpaint_ops.c b/source/blender/editors/physics/dynamicpaint_ops.c index 5cb74e1ca09..6f0108654eb 100644 --- a/source/blender/editors/physics/dynamicpaint_ops.c +++ b/source/blender/editors/physics/dynamicpaint_ops.c @@ -384,7 +384,7 @@ static int dynamicPaint_initBake(struct bContext *C, struct wmOperator *op) /* Clear bake */ canvas->flags &= ~MOD_DPAINT_BAKING; if (!G.background) { - WM_cursor_restore(win); + WM_cursor_modal_restore(win); } dynamicPaint_freeSurfaceData(surface); diff --git a/source/blender/editors/physics/physics_pointcache.c b/source/blender/editors/physics/physics_pointcache.c index b9742c9968f..515ac330cc9 100644 --- a/source/blender/editors/physics/physics_pointcache.c +++ b/source/blender/editors/physics/physics_pointcache.c @@ -126,7 +126,7 @@ static int ptcache_bake_all_exec(bContext *C, wmOperator *op) * the job system soon anyways. */ if (win) { baker.progressbar = (void (*)(void *, int))WM_cursor_time; - baker.progressend = (void (*)(void *))WM_cursor_restore; + baker.progressend = (void (*)(void *))WM_cursor_modal_restore; baker.progresscontext = win; } else { @@ -230,7 +230,7 @@ static int ptcache_bake_exec(bContext *C, wmOperator *op) * the job system soon anyways. */ if (win) { baker.progressbar = (void (*)(void *, int))WM_cursor_time; - baker.progressend = (void (*)(void *))WM_cursor_restore; + baker.progressend = (void (*)(void *))WM_cursor_modal_restore; baker.progresscontext = win; } else { -- cgit v1.2.3