Code cleanup: deduplicate some branched and split kernel code.
[blender-staging.git] / intern / cycles / kernel / kernel_path_volume.h
index 3fd34ed10e27f35dec1c02dc888ac993d918e813..e7e24f853c2caba551ac2796b7e863b54c1ff0fb 100644 (file)
@@ -40,9 +40,7 @@ ccl_device_inline void kernel_path_volume_connect_light(
        bool is_lamp;
 
        /* connect to light from given point where shader has been evaluated */
-#  ifdef __OBJECT_MOTION__
        light_ray.time = sd->time;
-#  endif
 
        if(light_sample(kg, light_u, light_v, sd->time, sd->P, state->bounce, &ls))
        {
@@ -134,9 +132,7 @@ ccl_device void kernel_branched_path_volume_connect_light(
        BsdfEval L_light;
        bool is_lamp;
 
-#  ifdef __OBJECT_MOTION__
        light_ray.time = sd->time;
-#  endif
 
        if(sample_all_lights) {
                /* lamp sampling */