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:
authorCampbell Barton <ideasman42@gmail.com>2019-01-24 23:10:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-24 23:12:13 +0300
commita4fe338dd8c6822d27b8858bae5fa9a54972719c (patch)
tree9a6b671702a7cf41e98efef72e78c7cc54974111 /source/blender/draw/engines/eevee/eevee_lights.c
parentb1f3a86d999b6742d783de5a11d7de0c54cf5891 (diff)
Cleanup: add missing braces to draw manager
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_lights.c')
-rw-r--r--source/blender/draw/engines/eevee/eevee_lights.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lights.c b/source/blender/draw/engines/eevee/eevee_lights.c
index af3531e9a6c..57a93a27ca0 100644
--- a/source/blender/draw/engines/eevee/eevee_lights.c
+++ b/source/blender/draw/engines/eevee/eevee_lights.c
@@ -457,8 +457,9 @@ void EEVEE_lights_cache_shcaster_material_add(
DRW_shgroup_uniform_block(grp, "shadow_block", sldata->shadow_ubo);
DRW_shgroup_uniform_block(grp, "common_block", sldata->common_ubo);
- if (alpha_threshold != NULL)
+ if (alpha_threshold != NULL) {
DRW_shgroup_uniform_float(grp, "alphaThreshold", alpha_threshold, 1);
+ }
DRW_shgroup_call_object_add(grp, geom, ob);
}
@@ -599,8 +600,9 @@ void EEVEE_lights_cache_finish(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata)
float light_attenuation_radius_get(Lamp *la, float light_threshold)
{
- if (la->mode & LA_CUSTOM_ATTENUATION)
+ if (la->mode & LA_CUSTOM_ATTENUATION) {
return la->att_dist;
+ }
/* Compute max light power. */
float power = max_fff(la->r, la->g, la->b);