Fix Cycles build error when disabling some kernel features

Differential Revision: https://developer.blender.org/D8372
This commit is contained in:
Imre Palik 2020-09-01 19:10:03 +02:00 committed by Brecht Van Lommel
parent 2930d4fcea
commit f6dc6caa15
2 changed files with 4 additions and 0 deletions

View File

@ -140,7 +140,9 @@ void KERNEL_FUNCTION_FULL_NAME(bake)(
# ifdef KERNEL_STUB
STUB_ASSERT(KERNEL_ARCH, bake);
# else
# ifdef __BAKING__
kernel_bake_evaluate(kg, buffer, sample, x, y, offset, stride);
# endif
# endif /* KERNEL_STUB */
}

View File

@ -751,7 +751,9 @@ float Camera::world_to_raster_size(float3 P)
}
#else
camera_sample_panorama(&kernel_camera,
# ifdef __CAMERA_MOTION__
kernel_camera_motion.data(),
# endif
0.5f * full_width,
0.5f * full_height,
0.0f,