From aba4e6810f8b4d0e459137b64e061a2cadc457d1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 31 May 2019 23:21:16 +1000 Subject: Cleanup: style, use braces in source/ (include disabled blocks) --- source/blender/blenloader/intern/versioning_270.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'source/blender/blenloader/intern/versioning_270.c') 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 */ -- cgit v1.2.3