Carefully went over all scanline updating while rendering, to ensure only
[blender-staging.git] / source / blender / src / renderwin.c
index b980870dfca1ae3d098d877a9b79de1368b875c3..38004e986d53cf7b03e8bfa3b71eb69eac75196a 100644 (file)
@@ -761,9 +761,13 @@ static void renderwin_progress(RenderWin *rw, RenderResult *rr, rcti *renrect)
        
        /* if renrect argument, we only display scanlines */
        if(renrect) {
+                /* if ymax==recty, rendering of layer is ready, we should not draw, other things happen... */
+               if(rr->renlay==NULL || renrect->ymax>=rr->recty)
+                       return;
+               
                ymin= renrect->ymin;
                ymax= renrect->ymax-ymin;
-               if(ymax<2 || renrect->ymax>=rr->recty) /* if ymax==recty, rendering of layer is ready, we should not draw, other things happen... */
+               if(ymax<2)
                        return;
                renrect->ymin= renrect->ymax;
        }