diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-11-04 23:17:38 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-11-04 23:17:38 +0300 |
commit | 8bbf27dfbd8c3831541653f14de4e8b0bdf83259 (patch) | |
tree | 0ce41dee620aa417dc4b7ba4c763623d5b855f66 /source/blender/blenkernel | |
parent | 951882e289e43ae83ab892b2151b47c07fcfe218 (diff) |
Temporary fix for "freezing when pointcache is baked":
* WM_timecursor is broken somehow, so pointcache baking makes the cursor disappear.
* For user this seems like blender has frozen although it's just a matter of no progress indication.
* This fix just sets the default "busy" cursor for the whole duration of baking and reports progress in the console.
* If there's and easy fix for this then it should probably be done straight away, but I want to re-implement baking using the job system soon anyways, so a proper fix for this is not strictly necessary.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index 002e8c9de0f..35e0441739e 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -2607,6 +2607,8 @@ void BKE_ptcache_make_cache(PTCacheBaker* baker) thread_data.break_operation = FALSE; thread_data.thread_ended = FALSE; old_progress = -1; + + WM_cursor_wait(1); if(G.background) { ptcache_make_cache_thread((void*)&thread_data); @@ -2690,6 +2692,8 @@ void BKE_ptcache_make_cache(PTCacheBaker* baker) else if (baker->progressend) baker->progressend(baker->progresscontext); + WM_cursor_wait(0); + /* TODO: call redraw all windows somehow */ } /* Helpers */ |