add memory address to undo steps print.
Helps identifying who is what in debugger...
This commit is contained in:
parent
9672605938
commit
343a874831
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue