[Bf-blender-cvs] [c53b1e2] master: Readfile: Minor optimization in undo/redo case: do not call `do_versions_userdef` either.
Bastien Montagne
noreply at git.blender.org
Fri Aug 28 14:06:58 CEST 2015
Commit: c53b1e2a93e17eb353d0dfa1472d501fd023d05f
Author: Bastien Montagne
Date: Fri Aug 28 14:06:01 2015 +0200
Branches: master
https://developer.blender.org/rBc53b1e2a93e17eb353d0dfa1472d501fd023d05f
Readfile: Minor optimization in undo/redo case: do not call `do_versions_userdef` either.
===================================================================
M source/blender/blenloader/intern/readfile.c
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index ee07f2b..6600273 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);
More information about the Bf-blender-cvs
mailing list