From 1bf467aff69b5f0fde6f1d0689d57428cdb58e4e Mon Sep 17 00:00:00 2001 From: Weizhen Huang Date: Tue, 26 Mar 2024 09:39:22 +0100 Subject: [PATCH] Cleanup: make format --- intern/cycles/kernel/integrator/shade_volume.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/cycles/kernel/integrator/shade_volume.h b/intern/cycles/kernel/integrator/shade_volume.h index 8fbbab1720c..7d0c28acc25 100644 --- a/intern/cycles/kernel/integrator/shade_volume.h +++ b/intern/cycles/kernel/integrator/shade_volume.h @@ -944,9 +944,9 @@ ccl_device_forceinline bool integrate_volume_phase_scatter( INTEGRATOR_STATE_WRITE(state, ray, P) = sd->P; INTEGRATOR_STATE_WRITE(state, ray, D) = normalize(phase_wo); INTEGRATOR_STATE_WRITE(state, ray, tmin) = 0.0f; -#ifdef __LIGHT_TREE__ +# ifdef __LIGHT_TREE__ INTEGRATOR_STATE_WRITE(state, ray, previous_dt) = ray->tmax - ray->tmin; -#endif +# endif INTEGRATOR_STATE_WRITE(state, ray, tmax) = FLT_MAX; # ifdef __RAY_DIFFERENTIALS__ INTEGRATOR_STATE_WRITE(state, ray, dP) = differential_make_compact(sd->dP);