Fix error in the version patch for the SSS scene flag.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 1 Jun 2007 16:53:55 +0000 (16:53 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 1 Jun 2007 16:53:55 +0000 (16:53 +0000)
source/blender/blenloader/intern/readfile.c

index 4bbcfab74aefa805f49c788df116a2926b44142f..fd6b5837d158931e95a92cc2e78832980fb1da22 100644 (file)
@@ -6467,11 +6467,10 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
        if(main->versionfile <= 244) {
                Scene *sce;
 
-               if(main->subversionfile < 1) {
+               if(main->versionfile != 244 || main->subversionfile < 2) {
                        for(sce= main->scene.first; sce; sce= sce->id.next)
                                sce->r.mode |= R_SSS;
-               }
-               if(main->versionfile != 244 || main->subversionfile < 2) {
+
                        /* Copy over old per-level multires vertex data
                           into a single vertex array in struct Multires */
                        Mesh *me;