Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wilkins <Jason.A.Wilkins@gmail.com>2010-07-19 11:29:52 +0400
committerJason Wilkins <Jason.A.Wilkins@gmail.com>2010-07-19 11:29:52 +0400
commitacf3c4bb02c329f628f1314b0515db39cfdeebbf (patch)
tree4a4f443d0f9513289f1bd16ef492fd9462df5220 /source/blender/blenkernel/intern/brush.c
parent7b1aeea029b1052fa01b99f4e3f5a2e87eccd615 (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.c4
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 */