[Bf-blender-cvs] [54c4a107b10] blender2.8: Missed warning is previous commit

Jeroen Bakker noreply at git.blender.org
Thu Jun 21 09:04:16 CEST 2018


Commit: 54c4a107b10fefbb4c8a8ff4a88b718459819884
Author: Jeroen Bakker
Date:   Thu Jun 21 09:04:03 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB54c4a107b10fefbb4c8a8ff4a88b718459819884

Missed warning is previous commit

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

M	source/blender/blenkernel/intern/studiolight.c

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

diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c
index 32cbdc72291..e488551da6f 100644
--- a/source/blender/blenkernel/intern/studiolight.c
+++ b/source/blender/blenkernel/intern/studiolight.c
@@ -576,6 +576,7 @@ BLI_INLINE void studiolight_evaluate_specular_radiance_buffer(
 
 }
 
+#if STUDIOLIGHT_IRRADIANCE_METHOD == STUDIOLIGHT_IRRADIANCE_METHOD_RADIANCE
 static void studiolight_calculate_specular_irradiance(StudioLight *sl, float color[3], const float normal[3])
 {
 	copy_v3_fl(color, 0.0f);
@@ -603,7 +604,7 @@ static void studiolight_calculate_specular_irradiance(StudioLight *sl, float col
 
 	mul_v3_fl(color, 1.0 / M_PI);
 }
-
+#endif
 static bool studiolight_load_irradiance_equirectangular_image(StudioLight *sl)
 {
 #ifdef STUDIOLIGHT_LOAD_CACHED_FILES



More information about the Bf-blender-cvs mailing list