Fix OpenCL compilation error in Cycles, when building without hair support.

This commit is contained in:
Thomas Dinges 2014-05-29 12:38:03 +02:00
parent 3e0d5898e5
commit 4f83d3ec76
1 changed files with 2 additions and 0 deletions

View File

@ -143,6 +143,7 @@ ccl_device float4 primitive_motion_vector(KernelGlobals *kg, ShaderData *sd)
/* center position */
float3 center;
#ifdef __HAIR__
if(sd->type & PRIMITIVE_ALL_CURVE) {
center = curve_motion_center_location(kg, sd);
@ -150,6 +151,7 @@ ccl_device float4 primitive_motion_vector(KernelGlobals *kg, ShaderData *sd)
object_position_transform(kg, sd, &center);
}
else
#endif
center = sd->P;
float3 motion_pre = center, motion_post = center;