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:
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r--source/blender/blenloader/intern/readfile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 9efdb1f90f3..3a8fdb69d7a 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -5534,10 +5534,11 @@ static void read_libraries(FileData *basefd, ListBase *mainlist)
fd->libmap= basefd->libmap;
fd->flags|= FD_FLAGS_NOT_MY_LIBMAP;
+
+ mainptr->curlib->filedata= fd;
+ mainptr->versionfile= fd->fileversion;
}
-
- mainptr->curlib->filedata= fd;
- mainptr->versionfile= fd->fileversion;
+ else mainptr->curlib->filedata= NULL;
if (!fd)
printf("ERROR: can't find lib %s \n", mainptr->curlib->name);