diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 10:18:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 10:18:31 +0400 |
commit | 69e6894b15271884623ea6f56ead06db83acbe99 (patch) | |
tree | b68200606afaca06cf7552f6b12fc20ebd30d487 /source/blender/blenkernel/intern/paint.c | |
parent | 7b99ae0ad3017e373be2a344e30d190b70ca66b4 (diff) |
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
Diffstat (limited to 'source/blender/blenkernel/intern/paint.c')
-rw-r--r-- | source/blender/blenkernel/intern/paint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index fe4fdb58951..975602c2918 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -55,10 +55,10 @@ const char PAINT_CURSOR_TEXTURE_PAINT[3] = {255, 255, 255}; Paint *paint_get_active(Scene *sce) { - if(sce) { + if (sce) { ToolSettings *ts = sce->toolsettings; - if(sce->basact && sce->basact->object) { + if (sce->basact && sce->basact->object) { switch(sce->basact->object->mode) { case OB_MODE_SCULPT: return &ts->sculpt->paint; @@ -69,7 +69,7 @@ Paint *paint_get_active(Scene *sce) case OB_MODE_TEXTURE_PAINT: return &ts->imapaint.paint; case OB_MODE_EDIT: - if(ts->use_uv_sculpt) + if (ts->use_uv_sculpt) return &ts->uvsculpt->paint; else return &ts->imapaint.paint; @@ -90,7 +90,7 @@ Brush *paint_brush(Paint *p) void paint_brush_set(Paint *p, Brush *br) { - if(p) { + if (p) { id_us_min((ID *)p->brush); id_us_plus((ID *)br); p->brush= br; @@ -125,7 +125,7 @@ void paint_init(Paint *p, const char col[3]) /* If there's no brush, create one */ brush = paint_brush(p); - if(brush == NULL) + if (brush == NULL) brush= add_brush("Brush"); paint_brush_set(p, brush); |