diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-03-14 00:35:26 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-03-14 00:36:16 +0400 |
commit | 93684d5b5e3dcc6b9f0d4130ff5bdab86d2f7981 (patch) | |
tree | d103245caabd1f00a28e100277a30fd42ac8d3e4 /source/blender/editors/sculpt_paint/paint_image.c | |
parent | a8039d99f8a38ec9acb8bc048d38259bab574c53 (diff) |
Fix T39156 part 2: Add support for image paint operations in undo
history operator (Ctrl + Alt + Z).
This will only show paint operations now while in an image paint mode.
The caveat is that user can delete previous paint operations too (even
on images not on the canvas currently) so it needs some care. This is
consistent with regular undo behaviour though.
Sculpting also suffers from lack of Undo history support, this will be
added in a separate commit.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 1b2e708be0f..85010d1be52 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -686,7 +686,7 @@ void PAINT_OT_image_paint(wmOperatorType *ot) ot->cancel = paint_stroke_cancel; /* flags */ - ot->flag = OPTYPE_UNDO | OPTYPE_BLOCKING; + ot->flag = OPTYPE_BLOCKING; RNA_def_enum(ot->srna, "mode", stroke_mode_items, BRUSH_STROKE_NORMAL, "Paint Stroke Mode", |