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>2019-08-01 02:03:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-01 02:03:50 +0300
commit059d61ae9daa0500123cb70ff1e5732cb878f3dd (patch)
tree42a8803dd976fd5813f97ff265dfdcf0487ceeb7 /source/blender/blenloader
parentd8fb63661b3218e536f548e763675a08221e18cd (diff)
Cleanup: use braces, unused variable, unused enum
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c15
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(