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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user