diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-01 02:03:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-01 02:03:50 +0300 |
commit | 059d61ae9daa0500123cb70ff1e5732cb878f3dd (patch) | |
tree | 42a8803dd976fd5813f97ff265dfdcf0487ceeb7 /source/blender/blenkernel/intern/paint_toolslots.c | |
parent | d8fb63661b3218e536f548e763675a08221e18cd (diff) |
Cleanup: use braces, unused variable, unused enum
Diffstat (limited to 'source/blender/blenkernel/intern/paint_toolslots.c')
-rw-r--r-- | source/blender/blenkernel/intern/paint_toolslots.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/paint_toolslots.c b/source/blender/blenkernel/intern/paint_toolslots.c index abaf5a96481..a252329b635 100644 --- a/source/blender/blenkernel/intern/paint_toolslots.c +++ b/source/blender/blenkernel/intern/paint_toolslots.c @@ -67,16 +67,21 @@ void BKE_paint_toolslots_init_from_main(struct Main *bmain) for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { ToolSettings *ts = scene->toolsettings; paint_toolslots_init(bmain, &ts->imapaint.paint); - if (ts->sculpt) + if (ts->sculpt) { paint_toolslots_init(bmain, &ts->sculpt->paint); - if (ts->vpaint) + } + if (ts->vpaint) { paint_toolslots_init(bmain, &ts->vpaint->paint); - if (ts->wpaint) + } + if (ts->wpaint) { paint_toolslots_init(bmain, &ts->wpaint->paint); - if (ts->uvsculpt) + } + if (ts->uvsculpt) { paint_toolslots_init(bmain, &ts->uvsculpt->paint); - if (ts->gp_paint) + } + if (ts->gp_paint) { paint_toolslots_init(bmain, &ts->gp_paint->paint); + } } } |