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:
authorCampbell Barton <ideasman42@gmail.com>2014-07-12 14:01:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-07-12 14:07:46 +0400
commit8946c538f6627a3b98586be1c58f49674ef32bcf (patch)
treec40e78377df2d6559e188b8fb16c140564482c67
parentf905eba7c89de599fb0d10d941ce801481bb3a00 (diff)
remove redundant NULL checks
-rw-r--r--source/blender/blenkernel/intern/brush.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index 84cfe929e0f..4b4755ac9ac 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -185,14 +185,9 @@ Brush *BKE_brush_copy(Brush *brush)
/* not brush itself */
void BKE_brush_free(Brush *brush)
{
- if (brush->mtex.tex)
- id_us_min(&brush->mtex.tex->id);
-
- if (brush->mask_mtex.tex)
- id_us_min(&brush->mask_mtex.tex->id);
-
- if (brush->paint_curve)
- id_us_min(&brush->paint_curve->id);
+ id_us_min((ID *)brush->mtex.tex);
+ id_us_min((ID *)brush->mask_mtex.tex);
+ id_us_min((ID *)brush->paint_curve);
if (brush->icon_imbuf)
IMB_freeImBuf(brush->icon_imbuf);