From db7566fa98c0f8764ff0146277e8639f00a6911c Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 27 Jul 2004 11:00:09 +0000 Subject: Fix for #1475 Apparently appending or linking from other files didn't call a proper do_version() patch to initialize new variables correctly. Was result of the streamgluing stuff in NaN period... fixed. --- source/blender/blenloader/intern/readfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 8123aa22d42..51016cc25ac 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5053,7 +5053,8 @@ void BLO_library_append(SpaceFile *sfile, char *dir, int idcode) /* which one do we need? */ mainl = blo_find_main(&mainlist, dir); - + mainl->versionfile= fd->fileversion; // needed for do_version + if(totsel==0) { append_named_part(fd, mainl, G.scene, sfile->file, idcode); } @@ -5138,6 +5139,7 @@ static void read_libraries(FileData *basefd, ListBase *mainlist) } mainptr->curlib->filedata= fd; + mainptr->versionfile= fd->fileversion; if (!fd) printf("ERROR: can't find lib %s \n", mainptr->curlib->name); -- cgit v1.2.3