Dependency variables in scenes were initialized in do_versions, instad of
authorTon Roosendaal <ton@blender.org>
Sun, 29 May 2005 19:41:03 +0000 (19:41 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 29 May 2005 19:41:03 +0000 (19:41 +0000)
in the scene reading function. Caused 2.37 saved files to crash.

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;