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_vertex.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_vertex.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 122dbae6129..c3f1e38b663 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -2062,6 +2062,8 @@ static int wpaint_mode_toggle_exec(bContext *C, wmOperator *op) /* weight paint spesific */ mesh_octree_table(NULL, NULL, NULL, 'e'); mesh_mirrtopo_table(NULL, 'e'); + + paint_cursor_delete_textures(); } else { ob->mode |= mode_flag; @@ -2684,6 +2686,8 @@ static int vpaint_mode_toggle_exec(bContext *C, wmOperator *op) if (me->editflag & ME_EDIT_PAINT_FACE_SEL) { BKE_mesh_flush_select_from_polys(me); } + + paint_cursor_delete_textures(); } else { ob->mode |= mode_flag; |