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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-05-28 14:32:38 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-05-28 14:32:38 +0400
commite442adf9cfd350b17191fb3496ff40e4fa31be9d (patch)
treea48da203629f31020a08e00daba57f6e7ed92e72 /source/blender/blenloader
parent04c30c5efbddba0266f0f593fcb87683af2af5a8 (diff)
Fixed crash opening files with missed libraries.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 8d41b54501a..375ede02f06 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -9002,12 +9002,6 @@ static void read_libraries(FileData *basefd, ListBase *mainlist)
fd = blo_openblenderfile(mainptr->curlib->filepath, basefd->reports);
- /* share the mainlist, so all libraries are added immediately in a
- * single list. it used to be that all FileData's had their own list,
- * but with indirectly linking this meant we didn't catch duplicate
- * libraries properly */
- fd->mainlist = mainlist;
-
/* allow typing in a new lib path */
if (G.rt == -666) {
while (fd == NULL) {
@@ -9034,6 +9028,12 @@ static void read_libraries(FileData *basefd, ListBase *mainlist)
}
if (fd) {
+ /* share the mainlist, so all libraries are added immediately in a
+ * single list. it used to be that all FileData's had their own list,
+ * but with indirectly linking this meant we didn't catch duplicate
+ * libraries properly */
+ fd->mainlist = mainlist;
+
fd->reports = basefd->reports;
if (fd->libmap)