diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-31 16:21:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-31 16:22:52 +0300 |
commit | aba4e6810f8b4d0e459137b64e061a2cadc457d1 (patch) | |
tree | 2b6159c7ba0f23c020600b71276772fa4a882b5b /source/blender/blenloader/intern | |
parent | 72a563cdee8fef198a200ff65b57ddb847c01795 (diff) |
Cleanup: style, use braces in source/ (include disabled blocks)
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 6 | ||||
-rw-r--r-- | source/blender/blenloader/intern/versioning_270.c | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index b2536935663..3127540b837 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -7286,8 +7286,9 @@ static void direct_link_area(FileData *fd, ScrArea *area) * committed: r28002 */ #if 0 sima->gpd = newdataadr(fd, sima->gpd); - if (sima->gpd) + if (sima->gpd) { direct_link_gpencil(fd, sima->gpd); + } #endif } else if (sl->spacetype == SPACE_NODE) { @@ -9844,8 +9845,9 @@ static BHead *find_bhead(FileData *fd, void *old) #if 0 for (bhead = blo_bhead_first(fd); bhead; bhead = blo_bhead_next(fd, bhead)) { - if (bhead->old == old) + if (bhead->old == old) { return bhead; + } } #endif diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c index 20b2bfd95c8..4adbbac8cae 100644 --- a/source/blender/blenloader/intern/versioning_270.c +++ b/source/blender/blenloader/intern/versioning_270.c @@ -1168,15 +1168,19 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *bmain) * for minimal disruption. */ ts->gpencil_v3d_align = 0; - if (gpd->flag & GP_DATA_VIEWALIGN) + if (gpd->flag & GP_DATA_VIEWALIGN) { ts->gpencil_v3d_align |= GP_PROJECT_VIEWSPACE; - if (gpd->flag & GP_DATA_DEPTH_VIEW) + } + if (gpd->flag & GP_DATA_DEPTH_VIEW) { ts->gpencil_v3d_align |= GP_PROJECT_DEPTH_VIEW; - if (gpd->flag & GP_DATA_DEPTH_STROKE) + } + if (gpd->flag & GP_DATA_DEPTH_STROKE) { ts->gpencil_v3d_align |= GP_PROJECT_DEPTH_STROKE; + } - if (gpd->flag & GP_DATA_DEPTH_STROKE_ENDPOINTS) + if (gpd->flag & GP_DATA_DEPTH_STROKE_ENDPOINTS) { ts->gpencil_v3d_align |= GP_PROJECT_DEPTH_STROKE_ENDPOINTS; + } } else { /* Default to cursor for all standard 3D views */ |