diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-03-23 09:51:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-03-23 11:15:23 +0300 |
commit | 72c43e028557dc52e00969ed75424e8ac98cd6e3 (patch) | |
tree | 9aec33928db543262c51b77fed05a6ee9834f7c6 /source/blender/editors/sculpt_paint/paint_image_proj.c | |
parent | 529c21acc2e6e0830844a610d4f8d6a9b72a9902 (diff) |
Cleanup: move image undo into own file
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_proj.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 27bffd2376e..60fe8555ba2 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -5384,8 +5384,7 @@ static int texture_paint_camera_project_exec(bContext *C, wmOperator *op) scene->toolsettings->imapaint.flag |= IMAGEPAINT_DRAWING; - ED_undo_paint_push_begin(UNDO_PAINT_IMAGE, op->type->name, - ED_image_undo_restore, ED_image_undo_free, NULL); + ED_image_undo_push_begin(op->type->name); /* allocate and initialize spatial data structures */ project_paint_begin(&ps, false, 0); |