Fix jobs progress display in taskbar incorrectly flashing on/off with multiple
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 10 Jan 2012 14:24:02 +0000 (14:24 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 10 Jan 2012 14:24:02 +0000 (14:24 +0000)
jobs active.

source/blender/windowmanager/intern/wm_jobs.c

index 2d0d0f92a442da0b6f4aadf81432b413fb64d35a..f2ee5a328d643d87979e550f41128e4064b7f5e4 100644 (file)
@@ -491,6 +491,13 @@ void wm_jobs_timer(const bContext *C, wmWindowManager *wm, wmTimer *wt)
                                WM_jobs_start(wm, steve);
                        }
                }
+               else if(steve->threads.first && !steve->ready) {
+                       if(steve->flag & WM_JOB_PROGRESS) {
+                               /* accumulate global progress for running jobs */
+                               jobs_progress++;
+                               total_progress += steve->progress;
+                       }
+               }
        }
        
        /* on file load 'winactive' can be NULL, possibly it should not happen but for now do a NULL check - campbell */