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 ...
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user