Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2013-04-23 02:20:38 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-04-23 02:20:38 +0400
commite066b077fb8cae95576b6e4db3fc5bb07e4ab358 (patch)
tree791eba58bca1187186cc67c9b5d8ab7609787bc4 /source/blender/makesrna/intern/rna_brush.c
parent15521ab0ff21368ffa19b75f926c806d5f8c2dad (diff)
Overlay fixes:
* Clobbering enum * Cursor overlay not dependent on mapping (again!) * Brush overlay not updating when size is tweaked
Diffstat (limited to 'source/blender/makesrna/intern/rna_brush.c')
-rw-r--r--source/blender/makesrna/intern/rna_brush.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c
index 4369c6dfabd..8e6bb976283 100644
--- a/source/blender/makesrna/intern/rna_brush.c
+++ b/source/blender/makesrna/intern/rna_brush.c
@@ -304,12 +304,7 @@ static void rna_Brush_secondary_tex_update(Main *bmain, Scene *scene, PointerRNA
static void rna_Brush_size_update(Main *bmain, Scene *scene, PointerRNA *ptr)
{
- Brush *br = (Brush *)ptr->data;
- if (br->mtex.mapping == MTEX_MAP_MODE_VIEW) {
- BKE_paint_invalidate_overlay_tex(scene, br->mtex.tex);
- BKE_paint_invalidate_overlay_tex(scene, br->mask_mtex.tex);
- }
- BKE_paint_invalidate_cursor_overlay(scene, br->curve);
+ BKE_paint_invalidate_overlay_all();
rna_Brush_update(bmain, scene, ptr);
}