[Bf-blender-cvs] [8ca83806994] master: Cleanup: compiler warning

Brecht Van Lommel noreply at git.blender.org
Wed Dec 1 20:59:56 CET 2021


Commit: 8ca838069943d0de559cfb40762dbc9d4ad0b790
Author: Brecht Van Lommel
Date:   Wed Dec 1 20:52:31 2021 +0100
Branches: master
https://developer.blender.org/rB8ca838069943d0de559cfb40762dbc9d4ad0b790

Cleanup: compiler warning

===================================================================

M	intern/cycles/kernel/light/light.h

===================================================================

diff --git a/intern/cycles/kernel/light/light.h b/intern/cycles/kernel/light/light.h
index f47e8fbcf82..6e445f862db 100644
--- a/intern/cycles/kernel/light/light.h
+++ b/intern/cycles/kernel/light/light.h
@@ -434,7 +434,6 @@ ccl_device bool light_sample_from_intersection(KernelGlobals kg,
     ls->pdf = invarea;
 
     /* spot light attenuation */
-    float3 dir = make_float3(klight->spot.dir[0], klight->spot.dir[1], klight->spot.dir[2]);
     ls->eval_fac *= spot_light_attenuation(
         ls->Ng, klight->spot.spot_angle, klight->spot.spot_smooth, -ls->D);



More information about the Bf-blender-cvs mailing list