[Bf-blender-cvs] [634dbfa2edb] blender2.8: Eevee: Fix grid probe updating when updating cube probe.
Clément Foucault
noreply at git.blender.org
Thu Jun 15 01:16:28 CEST 2017
Commit: 634dbfa2edb1f43d29051c696a3ccc645887407f
Author: Clément Foucault
Date: Thu Jun 15 00:23:00 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB634dbfa2edb1f43d29051c696a3ccc645887407f
Eevee: Fix grid probe updating when updating cube probe.
===================================================================
M source/blender/draw/engines/eevee/eevee_lightprobes.c
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list