Fix T53878: Cycles bug rendering multiple render layers with different passes.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 24 Jan 2018 09:56:13 +0000 (10:56 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 24 Jan 2018 09:57:32 +0000 (10:57 +0100)
This was caused by recent pass refactoring from f78e963.

intern/cycles/render/film.cpp

index 97937ac5f814f3b3cc736efe8bde079d2cb76813..b305f01095f4523e83ad4416b202bc1aea0b9b41 100644 (file)
@@ -310,6 +310,7 @@ void Film::device_update(Device *device, DeviceScene *dscene, Scene *scene)
        /* update __data */
        kfilm->exposure = exposure;
        kfilm->pass_flag = 0;
+       kfilm->light_pass_flag = 0;
        kfilm->pass_stride = 0;
        kfilm->use_light_pass = use_light_visibility || use_sample_clamp;