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:
authorCampbell Barton <ideasman42@gmail.com>2018-11-05 08:20:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-05 08:20:15 +0300
commitefd133a9a650bfd29e55aba60ad9a9d9acef0a2a (patch)
treef3e1c63cb48a4b2ddbea5250b895d41f8da81623 /source/blender/blenkernel/intern/paint.c
parent1b928c2d9a4b4b4a57046176912e0ae6d77f9a1d (diff)
Paint: setting the brush now updates tool slots
Adding a brush wasn't refreshing the tool-system (left blank topbar).
Diffstat (limited to 'source/blender/blenkernel/intern/paint.c')
-rw-r--r--source/blender/blenkernel/intern/paint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c
index e2e926736c7..f12e33344dc 100644
--- a/source/blender/blenkernel/intern/paint.c
+++ b/source/blender/blenkernel/intern/paint.c
@@ -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);
}
}