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>2013-03-30 13:57:35 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-30 13:57:35 +0400
commit20376f33374dd69ad5b24ae3698765fd83cd20b3 (patch)
treeca5dac02797d56cd62b66d4fc9065a54eb7daa22 /source/blender/editors/sculpt_paint/paint_image_2d.c
parentb1f4e2b4db0065cd4243e5645c2157314e126ddc (diff)
code cleanup: move beauty fill calculation into its own function and some style cleanup
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_2d.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_2d.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c
index 52aa44575cb..6032a7a4c22 100644
--- a/source/blender/editors/sculpt_paint/paint_image_2d.c
+++ b/source/blender/editors/sculpt_paint/paint_image_2d.c
@@ -156,8 +156,7 @@ static BrushPainter *brush_painter_2d_new(Scene *scene, Brush *brush)
static void brush_painter_2d_require_imbuf(BrushPainter *painter, short flt, int size)
{
- if ((painter->cache.flt != flt) || (painter->cache.size != size))
- {
+ if ((painter->cache.flt != flt) || (painter->cache.size != size)) {
if (painter->cache.ibuf) IMB_freeImBuf(painter->cache.ibuf);
if (painter->cache.maskibuf) IMB_freeImBuf(painter->cache.maskibuf);
painter->cache.ibuf = painter->cache.maskibuf = NULL;