add memory address to undo steps print.

Helps identifying who is what in debugger...
This commit is contained in:
Bastien Montagne 2020-04-02 17:22:44 +02:00
parent 9672605938
commit 343a874831
1 changed files with 2 additions and 1 deletions

View File

@ -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++;