From 3a042d205321574838b08fcfe99aa2d97fc4bc97 Mon Sep 17 00:00:00 2001 From: Jason Wilkins Date: Thu, 22 Jul 2010 21:10:29 +0000 Subject: [PATCH] Fix [#22965] Icons for new brushes won't get sticky --- source/blender/blenkernel/intern/brush.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index a668249b0d5..8670665a1ac 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -132,6 +132,8 @@ Brush *copy_brush(Brush *brush) if (brush->mtex.tex) id_us_plus((ID*)brush->mtex.tex); + //brushn->preview= NULL; + if (brush->icon_imbuf) brushn->icon_imbuf= IMB_dupImBuf(brush->icon_imbuf);