diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-05-16 22:28:05 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-05-17 00:13:28 +0300 |
commit | 09e419fa8da930b13651997417a434de308e697d (patch) | |
tree | 233300c669aa41171d029bb7d4892198c6931a25 /source/blender/blenloader | |
parent | 15c2801aac333341f0993f53a714a66f9f2384b2 (diff) |
Move Clay properties into scene
Per collection overrides are gone now.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 9c0ad15831b..eb351a247ab 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -1286,5 +1286,20 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main) #undef EEVEE_GET_BOOL } } + + if (!DNA_struct_elem_find(fd->filesdna, "SceneDisplay", "int", "matcap_icon")) { + for (Scene *scene = main->scene.first; scene; scene = scene->id.next) { + scene->display.matcap_icon = 1; + scene->display.matcap_type = CLAY_MATCAP_NONE; + scene->display.matcap_hue = 0.5f; + scene->display.matcap_saturation = 0.5f; + scene->display.matcap_value = 0.5f; + scene->display.matcap_ssao_distance = 0.2f; + scene->display.matcap_ssao_attenuation = 1.0f; + scene->display.matcap_ssao_factor_cavity = 1.0f; + scene->display.matcap_ssao_factor_edge = 1.0f; + scene->display.matcap_ssao_samples = 16; + } + } } } |