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.
This commit is contained in:
Ton Roosendaal
2004-07-27 11:00:09 +00:00
parent 7b943f2a6d
commit db7566fa98

View File

@@ -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);