Cycles: Fixed OpenCL render after the Embree checkin.
authorStefan Werner <stefan.werner@tangent-animation.com>
Wed, 7 Nov 2018 12:53:56 +0000 (13:53 +0100)
committerStefan Werner <stefan.werner@tangent-animation.com>
Wed, 7 Nov 2018 12:53:56 +0000 (13:53 +0100)
intern/cycles/util/util_transform.h

index d3bfb1d5752c35c87de230b2e6d86818c1c07dae..32b3b28f4d6c0082c6a40b5c58c5a43c042c8027 100644 (file)
@@ -422,6 +422,7 @@ ccl_device void transform_motion_array_interpolate(Transform *tfm,
        transform_compose(tfm, &decomp);
 }
 
+#ifdef __EMBREE__
 ccl_device void transform_motion_array_interpolate_straight(Transform *tfm, const ccl_global DecomposedTransform *motion, uint numsteps, float time)
 {
        /* Figure out which steps we need to interpolate. */
@@ -441,6 +442,7 @@ ccl_device void transform_motion_array_interpolate_straight(Transform *tfm, cons
        tfm->y = (1.0f - t) * step1.y + t * step2.y;
        tfm->z = (1.0f - t) * step1.z + t * step2.z;
 }
+#endif
 
 #ifndef __KERNEL_GPU__