diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2010-09-07 07:02:03 +0400 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2010-09-07 07:02:03 +0400 |
commit | 2ffa9e1309bbdacc75d4fc73d5d4df0b92ce4aff (patch) | |
tree | d85e3d3d0447b02470acac91637ac44b27c1e475 /source/blender/blenkernel/intern/brush.c | |
parent | fd53393a5d0c273f903ad7e4bd216b7c69d1dd7b (diff) |
== Sculpt ==
Fixed bug #23654
Brush copy clears its preview, so that the copied brush's icon isn't linked to the old brush
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |