Image Stamping patch by Diego (and peach request)- stamps image info into metadata...
[blender.git] / source / blender / blenloader / intern / readfile.c
index 487cce9e44f68f1ddcc53e631d06845daaf7c146..a58593114702ea169079b9fc00c2b4ac73f2f22b 100644 (file)
@@ -6764,7 +6764,15 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                                        ((ArmatureModifierData*)md)->deformflag |= ARM_DEF_B_BONE_REST;
        }
 
-
+       if ((main->versionfile < 245) || (main->versionfile == 245 && main->subversionfile < 5)) {
+               /* foreground color needs to be somthing other then black */
+               Scene *sce;
+               for(sce= main->scene.first; sce; sce=sce->id.next) {
+                       sce->r.fg_stamp[0] = sce->r.fg_stamp[1] = sce->r.fg_stamp[2] = 0.8;
+               }
+       }
+       
+       
        /* WATCH IT!!!: pointers from libdata have not been converted yet here! */
        /* WATCH IT 2!: Userdef struct init has to be in src/usiblender.c! */