Paint: setting the brush now updates tool slots

Adding a brush wasn't refreshing the tool-system (left blank topbar).
This commit is contained in:
Campbell Barton 2018-11-05 16:20:15 +11:00
parent 1b928c2d9a
commit efd133a9a6
1 changed files with 2 additions and 0 deletions

View File

@ -299,6 +299,8 @@ void BKE_paint_brush_set(Paint *p, Brush *br)
id_us_min((ID *)p->brush);
id_us_plus((ID *)br);
p->brush = br;
BKE_paint_toolslots_brush_update(p);
}
}