From 2ffa9e1309bbdacc75d4fc73d5d4df0b92ce4aff Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 7 Sep 2010 03:02:03 +0000 Subject: [PATCH] == Sculpt == Fixed bug #23654 Brush copy clears its preview, so that the copied brush's icon isn't linked to the old brush --- 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 71a43994363..90ea562be9d 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -147,6 +147,8 @@ Brush *copy_brush(Brush *brush) if (brush->icon_imbuf) brushn->icon_imbuf= IMB_dupImBuf(brush->icon_imbuf); + brushn->preview = NULL; + brushn->curve= curvemapping_copy(brush->curve); /* enable fake user by default */