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_lightprobes.c
parentb1f3a86d999b6742d783de5a11d7de0c54cf5891 (diff)
Cleanup: add missing braces to draw manager
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_lightprobes.c')
-rw-r--r--source/blender/draw/engines/eevee/eevee_lightprobes.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c
index 3199fc430cf..601073a7be2 100644
--- a/source/blender/draw/engines/eevee/eevee_lightprobes.c
+++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c
@@ -78,15 +78,18 @@ bool EEVEE_lightprobes_obj_visibility_cb(bool vis_in, void *user_data)
EEVEE_ObjectEngineData *oed = (EEVEE_ObjectEngineData *)user_data;
/* test disabled if group is NULL */
- if (oed->test_data->collection == NULL)
+ if (oed->test_data->collection == NULL) {
return vis_in;
+ }
- if (oed->test_data->cached == false)
+ if (oed->test_data->cached == false) {
oed->ob_vis_dirty = true;
+ }
/* early out, don't need to compute ob_vis yet. */
- if (vis_in == false)
+ if (vis_in == false) {
return vis_in;
+ }
if (oed->ob_vis_dirty) {
oed->ob_vis_dirty = false;