diff options
Diffstat (limited to 'intern/cycles/util/util_transform.h')
-rw-r--r-- | intern/cycles/util/util_transform.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/intern/cycles/util/util_transform.h b/intern/cycles/util/util_transform.h index 32b3b28f4d6..6bdf56fda7f 100644 --- a/intern/cycles/util/util_transform.h +++ b/intern/cycles/util/util_transform.h @@ -422,8 +422,13 @@ 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) +#ifndef __KERNEL_GPU__ + +#ifdef WITH_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. */ int maxstep = numsteps - 1; @@ -444,8 +449,6 @@ ccl_device void transform_motion_array_interpolate_straight(Transform *tfm, cons } #endif -#ifndef __KERNEL_GPU__ - class BoundBox2D; ccl_device_inline bool operator==(const DecomposedTransform& A, const DecomposedTransform& B) |