Merging fluidcontrol to trunk from rev16649 fluidcontrol branch. Code provided by...
[blender-staging.git] / source / blender / blenloader / intern / readfile.c
index 797c986b7d082c05f3f7b1d8e52a88df6721001b..8d9980166675b16d62f53590193d5f94de9b7c87 100644 (file)
@@ -7849,6 +7849,13 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                }
        }
 
+       if (main->versionfile < 247 || (main->versionfile == 247 && main->subversionfile < 5)) {
+               Lamp *la= main->lamp.first;
+               for(; la; la= la->id.next) {
+                       la->skyblendtype= MA_RAMP_ADD;
+                       la->skyblendfac= 1.0f;
+               }
+       }
        /* WATCH IT!!!: pointers from libdata have not been converted yet here! */
        /* WATCH IT 2!: Userdef struct init has to be in src/usiblender.c! */