Cycles; Make baking a feature-specific option
[blender-staging.git] / intern / cycles / device / device_opencl.cpp
index 3305ef4bb1430d8dacde31e4580215911ad14a20..3581026621842ec85c43ea1c8e0e3365f375feb4 100644 (file)
@@ -1560,6 +1560,9 @@ protected:
                if(!requested_features.use_camera_motion) {
                        build_options += " -D__NO_CAMERA_MOTION__";
                }
+               if(!requested_features.use_baking) {
+                       build_options += " -D__NO_BAKING__";
+               }
                return build_options;
        }