add memory address to undo steps print.
Helps identifying who is what in debugger...
This commit is contained in:
@@ -877,12 +877,13 @@ void BKE_undosys_print(UndoStack *ustack)
|
|||||||
BLI_listbase_count(&ustack->steps));
|
BLI_listbase_count(&ustack->steps));
|
||||||
int index = 0;
|
int index = 0;
|
||||||
for (UndoStep *us = ustack->steps.first; us; us = us->next) {
|
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 == ustack->step_active) ? '*' : ' ',
|
||||||
us->is_applied ? '#' : ' ',
|
us->is_applied ? '#' : ' ',
|
||||||
(us == ustack->step_active_memfile) ? 'M' : ' ',
|
(us == ustack->step_active_memfile) ? 'M' : ' ',
|
||||||
us->skip ? 'S' : ' ',
|
us->skip ? 'S' : ' ',
|
||||||
index,
|
index,
|
||||||
|
(void *)us,
|
||||||
us->type->name,
|
us->type->name,
|
||||||
us->name);
|
us->name);
|
||||||
index++;
|
index++;
|
||||||
|
Reference in New Issue
Block a user