Carefully went over all scanline updating while rendering, to ensure only
[blender-staging.git] / source / blender / render / intern / source / zbuf.c
index ca0dfd7658a3e2f87d1a11a7807f723db05da180..133ff1afd6df2e944f502d6030778d0f454bca2d 100644 (file)
@@ -2686,9 +2686,9 @@ void zbuffer_transp_shade(RenderPart *pa, RenderLayer *rl, float *pass)
        /* init scanline updates */
        rr->renrect.ymin= 0;
        rr->renrect.ymax= -pa->crop;
-
+       rr->renlay= rl;
+                               
        /* render the tile */
-       
        for(y=pa->disprect.ymin+crop; y<pa->disprect.ymax-crop; y++, rr->renrect.ymax++) {
                pass= passrect;
                ap= aprect;
@@ -2816,6 +2816,9 @@ void zbuffer_transp_shade(RenderPart *pa, RenderLayer *rl, float *pass)
                offs+= pa->rectx;
        }
 
+       /* disable scanline updating */
+       rr->renlay= NULL;
+
        MEM_freeT(APixbuf);
        freepsA(&apsmbase);