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/paint_image_2d.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/paint_image_2d.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_2d.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c index 5f4594703ee..b2f429c31a1 100644 --- a/source/blender/editors/sculpt_paint/paint_image_2d.c +++ b/source/blender/editors/sculpt_paint/paint_image_2d.c @@ -49,6 +49,7 @@ #include "BKE_report.h" #include "ED_screen.h" +#include "ED_sculpt.h" #include "IMB_imbuf.h" #include "IMB_imbuf_types.h" @@ -902,7 +903,7 @@ static int paint_2d_op(void *state, ImBuf *ibufb, unsigned short *maskb, const f /* blend into canvas */ for (a = 0; a < tot; a++) { - imapaint_dirty_region(s->image, s->canvas, + ED_imapaint_dirty_region(s->image, s->canvas, region[a].destx, region[a].desty, region[a].width, region[a].height); @@ -1111,7 +1112,7 @@ void paint_2d_redraw(const bContext *C, void *ps, bool final) ImBuf *ibuf = BKE_image_acquire_ibuf(s->image, s->sima ? &s->sima->iuser : NULL, NULL); imapaint_image_update(s->sima, s->image, ibuf, false); - imapaint_clear_partial_redraw(); + ED_imapaint_clear_partial_redraw(); BKE_image_release_ibuf(s->image, ibuf, NULL); |