From 00d52376f7d78674acc9feb9dbbdbc3d96b2932a Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Thu, 21 Jun 2018 09:22:34 +0200 Subject: CodeStyle: Comments --- source/blender/blenkernel/BKE_studiolight.h | 8 ++++---- source/blender/blenkernel/intern/studiolight.c | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'source/blender') diff --git a/source/blender/blenkernel/BKE_studiolight.h b/source/blender/blenkernel/BKE_studiolight.h index af7ef9a383e..2bd55fdb96e 100644 --- a/source/blender/blenkernel/BKE_studiolight.h +++ b/source/blender/blenkernel/BKE_studiolight.h @@ -128,10 +128,10 @@ typedef struct StudioLight { float *gpu_matcap_3components; /* 3 channel buffer for GPU_R11F_G11F_B10F */ /* - Free function to clean up the running icons previews (wmJob) the usage is in - interface_icons. Please be aware that this was build to handle only one free function - that cleans up all icons. just to keep the code simple. - */ + * Free function to clean up the running icons previews (wmJob) the usage is in + * interface_icons. Please be aware that this was build to handle only one free function + * that cleans up all icons. just to keep the code simple. + */ StudioLightFreeFunction *free_function; void* free_function_data; } StudioLight; diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c index 8bf0eb5be0e..556618c578c 100644 --- a/source/blender/blenkernel/intern/studiolight.c +++ b/source/blender/blenkernel/intern/studiolight.c @@ -63,21 +63,21 @@ static ListBase studiolights; #define STUDIOLIGHT_IRRADIANCE_METHOD_RADIANCE 0 #define STUDIOLIGHT_IRRADIANCE_METHOD_SPHERICAL_HARMONICS 1 /* - The method to calculate the irradiance buffers - The irradiance buffer is only shown in the background when in LookDev. - - STUDIOLIGHT_IRRADIANCE_METHOD_RADIANCE is very slow, but very accurate - STUDIOLIGHT_IRRADIANCE_METHOD_SPHERICAL_HARMONICS is faster but has artifacts -*/ + * The method to calculate the irradiance buffers + * The irradiance buffer is only shown in the background when in LookDev. + * + * STUDIOLIGHT_IRRADIANCE_METHOD_RADIANCE is very slow, but very accurate + * STUDIOLIGHT_IRRADIANCE_METHOD_SPHERICAL_HARMONICS is faster but has artifacts + */ // #define STUDIOLIGHT_IRRADIANCE_METHOD STUDIOLIGHT_IRRADIANCE_METHOD_RADIANCE #define STUDIOLIGHT_IRRADIANCE_METHOD STUDIOLIGHT_IRRADIANCE_METHOD_SPHERICAL_HARMONICS /* - Disable this option so caches are not loaded from disk - Do not checkin with this commented out -*/ + * Disable this option so caches are not loaded from disk + * Do not checkin with this commented out + */ #define STUDIOLIGHT_LOAD_CACHED_FILES static const char *STUDIOLIGHT_CAMERA_FOLDER = "studiolights/camera/"; @@ -682,8 +682,8 @@ static void studiolight_calculate_irradiance_equirectangular_image(StudioLight * #if STUDIOLIGHT_IRRADIANCE_METHOD == STUDIOLIGHT_IRRADIANCE_METHOD_RADIANCE /* - Only store cached files when using STUDIOLIGHT_IRRADIANCE_METHOD_RADIANCE - */ + * Only store cached files when using STUDIOLIGHT_IRRADIANCE_METHOD_RADIANCE + */ if (sl->flag & STUDIOLIGHT_USER_DEFINED) { IMB_saveiff(sl->equirectangular_irradiance_buffer, sl->path_irr_cache, IB_rectfloat); } -- cgit v1.2.3