From f13c729b26befae8709a8e565a27d6fd31101d44 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 15 Mar 2017 05:16:07 +1100 Subject: WM: free operators when repeating Needed since the active operator isn't ensured to be the last. --- source/blender/editors/util/undo.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/util') diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index fab5b7e821f..4e021d4833e 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -419,6 +419,9 @@ int ED_undo_operator_repeat(bContext *C, struct wmOperator *op) if (G.debug & G_DEBUG) printf("redo_cb: operator redo %s\n", op->type->name); + + WM_operator_free_all_after(wm, op); + ED_undo_pop_op(C, op); if (op->type->check) { -- cgit v1.2.3