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/blenloader/intern/readfile.c | |
parent | d8fb63661b3218e536f548e763675a08221e18cd (diff) |
Cleanup: use braces, unused variable, unused enum
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 9f6db2264d9..91e07dc9f47 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -6414,16 +6414,21 @@ static void lib_link_scene(FileData *fd, Main *main) sce->gpd = newlibadr_us(fd, sce->id.lib, sce->gpd); link_paint(fd, sce, &sce->toolsettings->imapaint.paint); - if (sce->toolsettings->sculpt) + if (sce->toolsettings->sculpt) { link_paint(fd, sce, &sce->toolsettings->sculpt->paint); - if (sce->toolsettings->vpaint) + } + if (sce->toolsettings->vpaint) { link_paint(fd, sce, &sce->toolsettings->vpaint->paint); - if (sce->toolsettings->wpaint) + } + if (sce->toolsettings->wpaint) { link_paint(fd, sce, &sce->toolsettings->wpaint->paint); - if (sce->toolsettings->uvsculpt) + } + if (sce->toolsettings->uvsculpt) { link_paint(fd, sce, &sce->toolsettings->uvsculpt->paint); - if (sce->toolsettings->gp_paint) + } + if (sce->toolsettings->gp_paint) { link_paint(fd, sce, &sce->toolsettings->gp_paint->paint); + } if (sce->toolsettings->sculpt) { sce->toolsettings->sculpt->gravity_object = newlibadr( |