diff --git a/intern/cycles/kernel/kernel_path.h b/intern/cycles/kernel/kernel_path.h index b8994d940fd..5cd4504b7b3 100644 --- a/intern/cycles/kernel/kernel_path.h +++ b/intern/cycles/kernel/kernel_path.h @@ -371,9 +371,9 @@ ccl_device void kernel_path_subsurface_update_volume_stack(KernelGlobals *kg, Intersection isect; const float3 Pend = volume_ray.P + volume_ray.D*volume_ray.t; - while( - scene_intersect(kg, &volume_ray, PATH_RAY_ALL_VISIBILITY, - &isect, NULL, 0.0f, 0.0f)) { + while(scene_intersect(kg, &volume_ray, PATH_RAY_ALL_VISIBILITY + &isect, NULL, 0.0f, 0.0f)) + { ShaderData sd; shader_setup_from_ray(kg, &sd, &isect, &volume_ray, 0, 0); kernel_volume_stack_enter_exit(kg, &sd, stack);