diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-03-29 21:38:35 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-04-01 13:31:01 +0300 |
commit | c859e1afa0dcca1a495c6b25d00bab65bf94be0b (patch) | |
tree | e123614b27afbdd44a9659463624f10ba024c97c /source/blender/blenloader/intern/versioning_290.c | |
parent | b30cc7071b77731a3a8c2782553e3668bd822fe2 (diff) |
Fix: incorrect versioning code for lights properties
Due to T64791 we must still use the old Lamp name rather than Light, work
around that for now.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_290.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_290.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c index c2f8b7b4ebe..d8f798a11cd 100644 --- a/source/blender/blenloader/intern/versioning_290.c +++ b/source/blender/blenloader/intern/versioning_290.c @@ -1908,7 +1908,7 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain) } if (!MAIN_VERSION_ATLEAST(bmain, 293, 14)) { - if (!DNA_struct_elem_find(fd->filesdna, "Light", "float", "diff_fac")) { + if (!DNA_struct_elem_find(fd->filesdna, "Lamp", "float", "diff_fac")) { LISTBASE_FOREACH (Light *, light, &bmain->lights) { light->diff_fac = 1.0f; light->volume_fac = 1.0f; |