From 620b960d3d8cfd90b9f0df6ba3671c33eccb8309 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Apr 2019 09:19:45 +1000 Subject: Cleanup: style, use braces for editors --- source/blender/editors/undo/ed_undo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/undo/ed_undo.c') diff --git a/source/blender/editors/undo/ed_undo.c b/source/blender/editors/undo/ed_undo.c index a574b353c16..49b5cada04a 100644 --- a/source/blender/editors/undo/ed_undo.c +++ b/source/blender/editors/undo/ed_undo.c @@ -483,8 +483,9 @@ int ED_undo_operator_repeat(bContext *C, wmOperator *op) (WM_jobs_test(wm, scene, WM_JOB_TYPE_ANY) == 0)) { int retval; - if (G.debug & G_DEBUG) + if (G.debug & G_DEBUG) { printf("redo_cb: operator redo %s\n", op->type->name); + } WM_operator_free_all_after(wm, op); @@ -511,8 +512,9 @@ int ED_undo_operator_repeat(bContext *C, wmOperator *op) retval = WM_operator_repeat(C, op); if ((retval & OPERATOR_FINISHED) == 0) { - if (G.debug & G_DEBUG) + if (G.debug & G_DEBUG) { printf("redo_cb: operator redo failed: %s, return %d\n", op->type->name, retval); + } ED_undo_redo(C); } else { -- cgit v1.2.3