From c859e1afa0dcca1a495c6b25d00bab65bf94be0b Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 29 Mar 2021 20:38:35 +0200 Subject: 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. --- source/blender/blenloader/intern/versioning_290.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenloader/intern/versioning_290.c') 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; -- cgit v1.2.3