Fix #29523: RenderEngine.update_progress() doesn't redraw UI.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 7 Dec 2011 11:29:24 +0000 (11:29 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 7 Dec 2011 11:29:24 +0000 (11:29 +0000)
source/blender/editors/render/render_internal.c

index dbd1e27024ea85e44e4b34ad6c94870a4266cbb3..8a580627da375cc7440efdbaf1ba403b87fd0f1a 100644 (file)
@@ -378,8 +378,12 @@ static void render_progress_update(void *rjv, float progress)
 {
        RenderJob *rj= rjv;
        
-       if(rj->progress)
+       if(rj->progress && *rj->progress != progress) {
                *rj->progress = progress;
+
+               /* make jobs timer to send notifier */
+               *(rj->do_update)= 1;
+       }
 }
 
 static void image_rect_update(void *rjv, RenderResult *rr, volatile rcti *renrect)