diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-01-22 01:15:57 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-01-22 01:16:59 +0300 |
commit | 777e1d358a3af5bb774d13ec0f03c233593f68e7 (patch) | |
tree | 1372e9eca4a75be783981103cb9195ca1f265fb0 /source/blender/blenloader | |
parent | 73a1bf1a80260b0807b39b789f621a7746cf7eed (diff) |
Eevee: Probes: Add support for intensity tweak.
This works for grid and cubemaps.
The intensity is baked into the map itself. Thus you need to refresh/rebake the probe to see the changes.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index b5530d90330..2f07ca43ff0 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -915,4 +915,12 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main) } } } + + { + if (!DNA_struct_elem_find(fd->filesdna, "LightProbe", "float", "intensity")) { + for (LightProbe *probe = main->lightprobe.first; probe; probe = probe->id.next) { + probe->intensity = 1.0f; + } + } + } } |