Readfile: Minor optimization in undo/redo case: do not call do_versions_userdef either.

This commit is contained in:
2015-08-28 14:06:01 +02:00
parent c4ab521e26
commit c53b1e2a93

View File

@@ -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);