diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-10-09 20:00:15 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-10-09 20:00:15 +0400 |
commit | fe727ab4a26351894ee277aacbfd1696316bc189 (patch) | |
tree | 86a74e866d6244ee7523173104970e3bd7b12a42 /source/blender/editors/sculpt_paint/paint_image.c | |
parent | 6e1fe4ddd9209aa1b5bc562d92f82a6bfb743513 (diff) |
Paint cursor overlays: Delete the cursor texture overlay resources when
exiting a paint mode.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c index 910a49a8f7d..34603d7516c 100644 --- a/source/blender/editors/sculpt_paint/paint_image.c +++ b/source/blender/editors/sculpt_paint/paint_image.c @@ -792,6 +792,7 @@ static void toggle_paint_cursor(bContext *C, int enable) if (settings->imapaint.paintcursor && !enable) { WM_paint_cursor_end(wm, settings->imapaint.paintcursor); settings->imapaint.paintcursor = NULL; + paint_cursor_delete_textures(); } else if (enable) paint_cursor_start(C, image_paint_poll); @@ -820,6 +821,9 @@ void ED_space_image_paint_update(wmWindowManager *wm, ToolSettings *settings) paint_cursor_start_explicit(&imapaint->paint, wm, image_paint_poll); } + else { + paint_cursor_delete_textures(); + } } /************************ grab clone operator ************************/ |