Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-03-29 21:38:35 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-04-01 13:31:01 +0300
commitc859e1afa0dcca1a495c6b25d00bab65bf94be0b (patch)
treee123614b27afbdd44a9659463624f10ba024c97c /source/blender/blenloader/intern/versioning_290.c
parentb30cc7071b77731a3a8c2782553e3668bd822fe2 (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.c2
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;