diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-26 17:05:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-26 17:05:22 +0400 |
commit | 40353fe0d841e006d11ad5833eaedbc93fc0d608 (patch) | |
tree | 8973ecf81a138abe5584eef5dba282caee5dadaf /source/blender | |
parent | 06ae122f604a00ebe57903439a2a0cedd0f3ffca (diff) |
fix for NULL pointer crash with operator repeat, looks like error print got mixed up.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/util/undo.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index 8a6ec7f75db..a2381a208ef 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -358,19 +358,25 @@ int ED_undo_operator_repeat(bContext *C, struct wmOperator *op) ret= 1; } } + else { + if (G.f & G_DEBUG) { + printf("redo_cb: WM_operator_repeat_check returned false %s\n", op->type->name); + } + } /* set region back */ CTX_wm_region_set(C, ar); } else { if (G.f & G_DEBUG) { - printf("redo_cb: WM_operator_repeat_check returned false %s\n", op->type->name); + printf("redo_cb: ED_undo_operator_repeat called with NULL 'op'\n"); } } return ret; } + void ED_undo_operator_repeat_cb(bContext *C, void *arg_op, void *UNUSED(arg_unused)) { ED_undo_operator_repeat(C, (wmOperator *)arg_op); |