From e535ff44ffd686def7aafec401acec657f5a614c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 5 Feb 2019 14:24:11 +1100 Subject: Undo System: remove accumulate/store modes This complicated handling of undo steps in a generic way especially switching between undo systems that stored data to ones that accumulated changes. Now each undo system must treat it's steps as check-point, internally it can apply/rewind changes. This commit also fixes projection paint where the object mode wasn't following the undo steps. --- source/blender/editors/sculpt_paint/paint_curve_undo.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint/paint_curve_undo.c') diff --git a/source/blender/editors/sculpt_paint/paint_curve_undo.c b/source/blender/editors/sculpt_paint/paint_curve_undo.c index fbd2d0153a1..02d95ed54f8 100644 --- a/source/blender/editors/sculpt_paint/paint_curve_undo.c +++ b/source/blender/editors/sculpt_paint/paint_curve_undo.c @@ -134,7 +134,6 @@ void ED_paintcurve_undosys_type(UndoType *ut) ut->step_decode = paintcurve_undosys_step_decode; ut->step_free = paintcurve_undosys_step_free; - ut->mode = BKE_UNDOTYPE_MODE_STORE; ut->use_context = false; ut->step_size = sizeof(PaintCurveUndoStep); -- cgit v1.2.3