Put declarations at the top of the block to save some compile problems.
authorJohnny Matthews <johnny.matthews@gmail.com>
Sat, 2 Jun 2007 13:46:16 +0000 (13:46 +0000)
committerJohnny Matthews <johnny.matthews@gmail.com>
Sat, 2 Jun 2007 13:46:16 +0000 (13:46 +0000)
source/blender/blenloader/intern/readfile.c

index fd6b5837d158931e95a92cc2e78832980fb1da22..1b595b1e3fce8fae6bf83cec9f1faa41ccc9c616 100644 (file)
@@ -6468,12 +6468,13 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                Scene *sce;
 
                if(main->versionfile != 244 || main->subversionfile < 2) {
+                       Mesh *me;
                        for(sce= main->scene.first; sce; sce= sce->id.next)
                                sce->r.mode |= R_SSS;
 
                        /* Copy over old per-level multires vertex data
                           into a single vertex array in struct Multires */
-                       Mesh *me;
+                       
                        for(me = main->mesh.first; me; me=me->id.next) {
                                if(me->mr) {
                                        MultiresLevel *lvl = me->mr->levels.last;