Eevee: Add Lamp Specular multiplier.
[blender.git] / source / blender / blenloader / intern / versioning_280.c
index 7d473230a4e43ee1c05d63e1da5b0c74faf7d059..07f51dfbc2f1971b4222f7510dffe92e53c9cd90 100644 (file)
@@ -1072,4 +1072,12 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main)
                        }
                }
        }
+
+       {
+               if (!DNA_struct_elem_find(fd->filesdna, "Lamp", "float", "spec_fac")) {
+                       for (Lamp *la = main->lamp.first; la; la = la->id.next) {
+                               la->spec_fac = 1.0f;
+                       }
+               }
+       }
 }