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:
authorMatt Ebb <matt@mke3.net>2009-12-04 07:28:50 +0300
committerMatt Ebb <matt@mke3.net>2009-12-04 07:28:50 +0300
commita358b6386d8022f71160ccdb714e596ec63670a6 (patch)
treefa0731d959820848be3f934ee5dad7da0a13247d /source/blender/editors/physics
parent45955fef18c57a5d5633b88e823a9bb9d86b38e4 (diff)
* Fix for incorrect disabling after baking cloth sim
* Fix for time cursor getting 'stuck' after baking point caches
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r--source/blender/editors/physics/physics_pointcache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/physics/physics_pointcache.c b/source/blender/editors/physics/physics_pointcache.c
index 9973c38bb41..a931e27bc83 100644
--- a/source/blender/editors/physics/physics_pointcache.c
+++ b/source/blender/editors/physics/physics_pointcache.c
@@ -109,9 +109,11 @@ static int ptcache_bake_all_exec(bContext *C, wmOperator *op)
if (win) {
baker.progressbar = (void (*)(void *, int))WM_timecursor;
+ baker.progressend = (void (*)(void *))WM_cursor_restore;
baker.progresscontext = win;
} else {
baker.progressbar = bake_console_progress;
+ baker.progressend = NULL;
baker.progresscontext = NULL;
}
@@ -200,10 +202,12 @@ static int ptcache_bake_exec(bContext *C, wmOperator *op)
if (win) {
baker.progressbar = (void (*)(void *, int))WM_timecursor;
+ baker.progressend = (void (*)(void *))WM_cursor_restore;
baker.progresscontext = win;
} else {
printf("\n"); /* empty first line before console reports */
baker.progressbar = bake_console_progress;
+ baker.progressend = NULL;
baker.progresscontext = NULL;
}