Cycles Bake
[blender-staging.git] / intern / cycles / render / film.cpp
index 30ad86a8d4cd9c65051d5d6fa32470c74dce2646..c1aefbcfbbcb25a2dbf2a802bba693a7d3ae8a5a 100644 (file)
@@ -155,6 +155,9 @@ void Pass::add(PassType type, vector<Pass>& passes)
                        pass.components = 4;
                        pass.exposure = false;
                        break;
+               case PASS_LIGHT:
+                       /* ignores */
+                       break;
        }
 
        passes.push_back(pass);
@@ -393,6 +396,10 @@ void Film::device_update(Device *device, DeviceScene *dscene, Scene *scene)
                                kfilm->pass_shadow = kfilm->pass_stride;
                                kfilm->use_light_pass = 1;
                                break;
+
+                       case PASS_LIGHT:
+                               kfilm->use_light_pass = 1;
+                               break;
                        case PASS_NONE:
                                break;
                }