Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2018-06-21 10:04:03 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-06-21 10:04:03 +0300
commit54c4a107b10fefbb4c8a8ff4a88b718459819884 (patch)
tree697752b9d7ff2528884e7ec7a219e05d6f53dfd5 /source/blender/blenkernel/intern/studiolight.c
parent032c741214b3db579f60941855711b482ed5794e (diff)
Missed warning is previous commit
Diffstat (limited to 'source/blender/blenkernel/intern/studiolight.c')
-rw-r--r--source/blender/blenkernel/intern/studiolight.c3
1 files changed, 2 insertions, 1 deletions
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