[Bf-blender-cvs] [343a874831d] master: add memory address to undo steps print.

Bastien Montagne noreply at git.blender.org
Thu Apr 2 17:23:39 CEST 2020


Commit: 343a874831d3b9cc548d3fd72caa3e39d5cdaa71
Author: Bastien Montagne
Date:   Thu Apr 2 17:22:44 2020 +0200
Branches: master
https://developer.blender.org/rB343a874831d3b9cc548d3fd72caa3e39d5cdaa71

add memory address to undo steps print.

Helps identifying who is what in debugger...

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

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

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

diff --git a/source/blender/blenkernel/intern/undo_system.c b/source/blender/blenkernel/intern/undo_system.c
index b111dee80ad..847522a0a66 100644
--- a/source/blender/blenkernel/intern/undo_system.c
+++ b/source/blender/blenkernel/intern/undo_system.c
@@ -877,12 +877,13 @@ void BKE_undosys_print(UndoStack *ustack)
          BLI_listbase_count(&ustack->steps));
   int index = 0;
   for (UndoStep *us = ustack->steps.first; us; us = us->next) {
-    printf("[%c%c%c%c] %3d type='%s', name='%s'\n",
+    printf("[%c%c%c%c] %3d {%p} type='%s', name='%s'\n",
            (us == ustack->step_active) ? '*' : ' ',
            us->is_applied ? '#' : ' ',
            (us == ustack->step_active_memfile) ? 'M' : ' ',
            us->skip ? 'S' : ' ',
            index,
+           (void *)us,
            us->type->name,
            us->name);
     index++;



More information about the Bf-blender-cvs mailing list