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:
authorClément Foucault <foucault.clem@gmail.com>2017-06-15 01:23:00 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-06-15 01:57:16 +0300
commit634dbfa2edb1f43d29051c696a3ccc645887407f (patch)
tree2a9ab58d0773ed3107cb1cbf1f39f028a396157b /source/blender/draw/engines/eevee/eevee_lightprobes.c
parentcac851a00e0b654e9cc3ab9c4226e5cfab5f5f3d (diff)
Eevee: Fix grid probe updating when updating cube probe.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_lightprobes.c')
-rw-r--r--source/blender/draw/engines/eevee/eevee_lightprobes.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c
index 08ef1f914cc..bfb1b43e28b 100644
--- a/source/blender/draw/engines/eevee/eevee_lightprobes.c
+++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c
@@ -337,9 +337,12 @@ void EEVEE_lightprobes_cache_add(EEVEE_SceneLayerData *sldata, Object *ob)
if ((ob->deg_update_flag & DEG_RUNTIME_DATA_UPDATE) != 0) {
ped->need_update = true;
- ped->updated_cells = 0;
ped->probe_id = 0;
- pinfo->updated_bounce = 0;
+
+ if (probe->type == LIGHTPROBE_TYPE_GRID) {
+ ped->updated_cells = 0;
+ pinfo->updated_bounce = 0;
+ }
}
if (e_data.update_world) {