[Bf-blender-cvs] [a4574f5fe7a] undo-experiments-swap-reread-datablocks: undoexp: add message when having to actually re-allocate ID during undo.

Bastien Montagne noreply at git.blender.org
Fri Feb 14 19:14:36 CET 2020


Commit: a4574f5fe7a634475c32de7219875de721f193e0
Author: Bastien Montagne
Date:   Fri Feb 14 19:14:06 2020 +0100
Branches: undo-experiments-swap-reread-datablocks
https://developer.blender.org/rBa4574f5fe7a634475c32de7219875de721f193e0

undoexp: add message when having to actually re-allocate ID during undo.

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

M	source/blender/blenloader/intern/readfile.c

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

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 95c4f297d4e..8a6cb5be688 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -9418,6 +9418,12 @@ static BHead *read_libblock(FileData *fd,
     BLI_addtail(new_lb, id_old);
     BLI_addtail(old_lb, id);
   }
+  else if (fd->memfile != NULL) {
+    printf("We had to fully re-recreate ID %s (old addr: %p, new addr: %p)...\n",
+           id->name,
+           id_old,
+           id);
+  }
 
   return (bhead);
 }



More information about the Bf-blender-cvs mailing list