Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-07-10 12:37:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-10 12:39:53 +0300
commitf4b963dbddc049313fed9d7e8cfecd5f2a6a9ecf (patch)
tree49ea365b9cbea5914ea8fae1aecc83071e2a94a4 /source/blender
parent167f5a61e553ab48048870943224228d8fb9bc3a (diff)
Undo: print the undo stack when ed.undo logging is enabled
Print the undo stack on undo/redo when ed.undo logging is enabled.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/undo/ed_undo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/undo/ed_undo.c b/source/blender/editors/undo/ed_undo.c
index 582a2ccaef7..183e140169d 100644
--- a/source/blender/editors/undo/ed_undo.c
+++ b/source/blender/editors/undo/ed_undo.c
@@ -99,6 +99,10 @@ void ED_undo_push(bContext *C, const char *str)
BKE_undosys_stack_limit_steps_and_memory(wm->undo_stack, 0, memory_limit);
}
+ if (CLOG_CHECK(&LOG, 1)) {
+ BKE_undosys_print(wm->undo_stack);
+ }
+
WM_file_tag_modified();
}
@@ -236,6 +240,10 @@ static int ed_undo_step_impl(
Main *bmain = CTX_data_main(C);
WM_toolsystem_refresh_screen_all(bmain);
+ if (CLOG_CHECK(&LOG, 1)) {
+ BKE_undosys_print(wm->undo_stack);
+ }
+
return OPERATOR_FINISHED;
}