diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 02:19:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 12:48:16 +0300 |
commit | 620b960d3d8cfd90b9f0df6ba3671c33eccb8309 (patch) | |
tree | 64f69db4bf9d44f0a32d1c92b0714bf2dc98ff2d /source/blender/editors/undo/ed_undo.c | |
parent | bba60bb564cf5a16cfcac744d4ba82cf8eba3da9 (diff) |
Cleanup: style, use braces for editors
Diffstat (limited to 'source/blender/editors/undo/ed_undo.c')
-rw-r--r-- | source/blender/editors/undo/ed_undo.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 { |