Dependency variables in scenes were initialized in do_versions, instad of
[blender-staging.git] / source / blender / blenloader / intern / readfile.c
index b4c79741f50f9c0b97f011a8ba7cda94b303c08e..0955fcff1cb16aca7098f96c06557540f6b1f59e 100644 (file)
@@ -2474,6 +2474,9 @@ static void direct_link_scene(FileData *fd, Scene *sce)
        StripElem *se;
        int a;
 
+       sce->theDag = NULL;
+       sce->dagisvalid = 0;
+       
        link_list(fd, &(sce->base));
 
        sce->basact= newdataadr(fd, sce->basact);
@@ -4661,9 +4664,6 @@ static void do_versions(Main *main)
                bScreen *sc;
                
                while(sce) {
-                       sce->theDag = NULL;
-                       sce->dagisvalid = 0;
-                       
                        sce->r.mode &= ~R_ZBLUR;        // disabled for release
                        
                        if(sce->r.postsat==0.0) sce->r.postsat= 1.0;