diff options
author | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2010-07-19 11:29:52 +0400 |
---|---|---|
committer | Jason Wilkins <Jason.A.Wilkins@gmail.com> | 2010-07-19 11:29:52 +0400 |
commit | acf3c4bb02c329f628f1314b0515db39cfdeebbf (patch) | |
tree | 4a4f443d0f9513289f1bd16ef492fd9462df5220 /source/blender/blenkernel/intern/brush.c | |
parent | 7b1aeea029b1052fa01b99f4e3f5a2e87eccd615 (diff) |
* decrementing image_icon ref count from wrong place
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index c423d426e32..c47f5a3ddba 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -131,7 +131,9 @@ Brush *copy_brush(Brush *brush) brushn= copy_libblock(brush); if(brush->mtex.tex) id_us_plus((ID*)brush->mtex.tex); - + + if(brush->image_icon) id_us_plus((ID*)brush->image_icon); + brushn->curve= curvemapping_copy(brush->curve); /* enable fake user by default */ |