diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-12-06 00:28:14 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-12-08 02:29:13 +0400 |
commit | 8e5b02359b8590ac84afe7a61dd9a6dc67cd632e (patch) | |
tree | 95201615fbf0eb4102d171cfc8b9d27cc6677cff /source/blender/editors/sculpt_paint/sculpt_undo.c | |
parent | 31871c763f155af05a12b049a236a19a78d6b500 (diff) |
Fix T37326 inversion of image channels did not do an undo push. Now only do an undo if we are in image paint mode and use the paint undo stack. Also added missing GPU update.:
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_undo.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c index 8861777f326..846801ae85d 100644 --- a/source/blender/editors/sculpt_paint/sculpt_undo.c +++ b/source/blender/editors/sculpt_paint/sculpt_undo.c @@ -819,7 +819,7 @@ SculptUndoNode *sculpt_undo_push_node(Object *ob, PBVHNode *node, void sculpt_undo_push_begin(const char *name) { - undo_paint_push_begin(UNDO_PAINT_MESH, name, + ED_undo_paint_push_begin(UNDO_PAINT_MESH, name, sculpt_undo_restore, sculpt_undo_free); } @@ -839,5 +839,5 @@ void sculpt_undo_push_end(void) BKE_pbvh_node_layer_disp_free(unode->node); } - undo_paint_push_end(UNDO_PAINT_MESH); + ED_undo_paint_push_end(UNDO_PAINT_MESH); } |