Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-05-29 23:41:03 +0400
committerTon Roosendaal <ton@blender.org>2005-05-29 23:41:03 +0400
commitd73f051bdaabf707d7c3d50a6685d577ebd69001 (patch)
treea8ddc17225ee30b99115f8fed4e7e68dc431b022 /source/blender/blenloader
parentdf89dbfbabc2d45e26467691f2d95280ecfeac05 (diff)
Dependency variables in scenes were initialized in do_versions, instad of
in the scene reading function. Caused 2.37 saved files to crash.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index b4c79741f50..0955fcff1cb 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -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;