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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-08-28 15:06:01 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-08-28 15:06:01 +0300
commitc53b1e2a93e17eb353d0dfa1472d501fd023d05f (patch)
tree9f70a4be73119903124955533fd85986ced279fc /source/blender/blenloader
parentc4ab521e2609be02ab9680fc4eb7726a2af400ed (diff)
Readfile: Minor optimization in undo/redo case: do not call `do_versions_userdef` either.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index ee07f2b09cf..6600273b6b0 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -8331,10 +8331,10 @@ BlendFileData *blo_read_file_internal(FileData *fd, const char *filepath)
}
/* do before read_libraries, but skip undo case */
- if (fd->memfile==NULL)
+ if (fd->memfile == NULL) {
do_versions(fd, NULL, bfd->main);
-
- do_versions_userdef(fd, bfd);
+ do_versions_userdef(fd, bfd);
+ }
read_libraries(fd, &mainlist);