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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to