From 343a874831d3b9cc548d3fd72caa3e39d5cdaa71 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 2 Apr 2020 17:22:44 +0200 Subject: add memory address to undo steps print. Helps identifying who is what in debugger... --- source/blender/blenkernel/intern/undo_system.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; -- cgit v1.2.3