diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-12-02 15:01:40 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-12-04 12:10:27 +0300 |
commit | 847f568bf5f2aed8904066895e175da7118522e7 (patch) | |
tree | 17724cf55932782413eada31428e3e0bfea7d773 /source/blender/blenloader | |
parent | d439e87064fcc90dee4413affaf405db5a994e1a (diff) |
Eevee: Irradiance Visibility: Add RNA / Engine properties
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 8d56a1c8620..163df9987bb 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -42,6 +42,7 @@ #include "DNA_group_types.h" #include "DNA_lamp_types.h" #include "DNA_layer_types.h" +#include "DNA_lightprobe_types.h" #include "DNA_material_types.h" #include "DNA_mesh_types.h" #include "DNA_scene_types.h" @@ -736,6 +737,13 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main) } } + if (!DNA_struct_elem_find(fd->filesdna, "LightProbe", "float", "vis_bias")) { + for (LightProbe *probe = main->lightprobe.first; probe; probe = probe->id.next) { + probe->vis_bias = 1.0f; + probe->vis_blur = 0.2f; + } + } + typedef enum eNTreeDoVersionErrors { NTREE_DOVERSION_NO_ERROR = 0, NTREE_DOVERSION_NEED_OUTPUT = (1 << 0), |