2.5: Render
[blender-staging.git] / source / blender / blenloader / intern / readfile.c
index 21e173bd87dcaa13648b448428a2834bb9fccc34..06092cc97d42a642f65af73632e8f3f7dd525ea0 100644 (file)
@@ -9098,7 +9098,9 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
        if (main->versionfile < 250) {
                bScreen *screen;
                Scene *scene;
+               Base *base;
                Material *ma;
+               Camera *cam;
                Mesh *me;
                Scene *sce;
                Tex *tx;
@@ -9132,6 +9134,20 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                for(sce= main->scene.first; sce; sce= sce->id.next) {
                        if(sce->nodetree && strlen(sce->nodetree->id.name)==0)
                                strcpy(sce->nodetree->id.name, "NTComposit Nodetree");
+
+                       /* move to cameras */
+                       if(sce->r.scemode & R_PANORAMA) {
+                               for(base=scene->base.first; base; base=base->next) {
+                                       ob= newlibadr(fd, lib, base->object);
+
+                                       if(ob->type == OB_CAMERA && !ob->id.lib) {
+                                               cam= newlibadr(fd, lib, ob->data);
+                                               cam->flag |= CAM_PANORAMA;
+                                       }
+                               }
+
+                               sce->r.scemode &= ~R_PANORAMA;
+                       }
                }
                /* and texture trees */
                for(tx= main->tex.first; tx; tx= tx->id.next) {