[Bf-blender-cvs] [60c54be053c] master: Fix/Cleanup invalid call to blendfile reading in UNDO_DISK.

Bastien Montagne noreply at git.blender.org
Mon Jan 6 15:49:08 CET 2020


Commit: 60c54be053c1fa0573540551ab322f6cb4a16676
Author: Bastien Montagne
Date:   Mon Jan 6 15:46:43 2020 +0100
Branches: master
https://developer.blender.org/rB60c54be053c1fa0573540551ab322f6cb4a16676

Fix/Cleanup invalid call to blendfile reading in UNDO_DISK.

Currently harmless since undo to disk is disabled, but that is not a
good reason to have invalid code.

===================================================================

M	source/blender/blenkernel/intern/blender_undo.c

===================================================================

diff --git a/source/blender/blenkernel/intern/blender_undo.c b/source/blender/blenkernel/intern/blender_undo.c
index 7c12747283c..cd950e05415 100644
--- a/source/blender/blenkernel/intern/blender_undo.c
+++ b/source/blender/blenkernel/intern/blender_undo.c
@@ -73,7 +73,7 @@ bool BKE_memfile_undo_decode(MemFileUndoData *mfu, bContext *C)
   G.fileflags |= G_FILE_NO_UI;
 
   if (UNDO_DISK) {
-    success = BKE_blendfile_read(C, mfu->filename, NULL, 0);
+    success = BKE_blendfile_read(C, mfu->filename, &(const struct BlendFileReadParams){0}, NULL);
   }
   else {
     success = BKE_blendfile_read_from_memfile(



More information about the Bf-blender-cvs mailing list