[Bf-blender-cvs] [efd133a9a65] blender2.8: Paint: setting the brush now updates tool slots
Campbell Barton
noreply at git.blender.org
Mon Nov 5 06:23:25 CET 2018
Commit: efd133a9a650bfd29e55aba60ad9a9d9acef0a2a
Author: Campbell Barton
Date: Mon Nov 5 16:20:15 2018 +1100
Branches: blender2.8
https://developer.blender.org/rBefd133a9a650bfd29e55aba60ad9a9d9acef0a2a
Paint: setting the brush now updates tool slots
Adding a brush wasn't refreshing the tool-system (left blank topbar).
===================================================================
M source/blender/blenkernel/intern/paint.c
===================================================================
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);
}
}
More information about the Bf-blender-cvs
mailing list