diff options
author | Ton Roosendaal <ton@blender.org> | 2004-07-27 15:00:09 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-07-27 15:00:09 +0400 |
commit | db7566fa98c0f8764ff0146277e8639f00a6911c (patch) | |
tree | 2541663811df6aa0292d2c5274e6deac77c8fe36 /source/blender/blenloader | |
parent | 7b943f2a6d8ddcb58580896b3526c14c5f776b59 (diff) |
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.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |