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:
authorLukas Tönne <lukas.toenne@gmail.com>2014-12-01 21:54:19 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2014-12-01 21:54:19 +0300
commit670f5deda62b35e8ed6e91f732052da775eb09f3 (patch)
tree94c1a6dc8c3b89c0a62d53e273c8cce6fcb437d9
parentee010650f61c759a1b5d3279bbdbbc5b8915152b (diff)
Fix for potential bug in paint brush RNA updates, was casting to wrong
DNA type. The update function is for the Paint struct, containing a Brush pointer property, not Brush itself. Probably went fine so far because was only used for a notifier pointer, but still ...
-rw-r--r--source/blender/makesrna/intern/rna_sculpt_paint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 09e42e48e93..73b7e310d1d 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -289,7 +289,8 @@ static char *rna_ParticleBrush_path(PointerRNA *UNUSED(ptr))
static void rna_Paint_brush_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
{
- Brush *br = (Brush *)ptr->data;
+ Paint *paint = ptr->data;
+ Brush *br = paint->brush;
BKE_paint_invalidate_overlay_all();
WM_main_add_notifier(NC_BRUSH | NA_EDITED, br);
}