diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-27 06:45:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-27 07:25:05 +0300 |
commit | 60ba7d4539b12c5be2b53fe59eb62033cf557e2a (patch) | |
tree | a5787ea14e4ccac9810a382d4c2398be1cfcd56f /source/blender/draw/intern/draw_cache_extract_mesh.c | |
parent | 2435850961b2be5a34c61d8eeb7a6bc0dadebf46 (diff) |
Clean: style
Diffstat (limited to 'source/blender/draw/intern/draw_cache_extract_mesh.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_extract_mesh.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/draw/intern/draw_cache_extract_mesh.c b/source/blender/draw/intern/draw_cache_extract_mesh.c index 6280bd8ccb2..086205ee760 100644 --- a/source/blender/draw/intern/draw_cache_extract_mesh.c +++ b/source/blender/draw/intern/draw_cache_extract_mesh.c @@ -1442,12 +1442,15 @@ static void extract_pos_nor_loop_mesh(const MeshRenderData *mr, copy_v3_v3(vert->pos, mvert->co); vert->nor = data->packed_nor[mloop->v]; /* Flag for paint mode overlay. */ - if (mvert->flag & ME_HIDE) + if (mvert->flag & ME_HIDE) { vert->nor.w = -1; - else if (mvert->flag & SELECT) + } + else if (mvert->flag & SELECT) { vert->nor.w = 1; - else + } + else { vert->nor.w = 0; + } } static void extract_pos_nor_ledge_bmesh(const MeshRenderData *mr, int e, BMEdge *eed, void *_data) @@ -1562,12 +1565,15 @@ static void extract_lnor_loop_mesh( ((GPUPackedNormal *)data)[l] = GPU_normal_convert_i10_v3(mr->poly_normals[p]); } /* Flag for paint mode overlay. */ - if (mpoly->flag & ME_HIDE) + if (mpoly->flag & ME_HIDE) { ((GPUPackedNormal *)data)[l].w = -1; - else if (mpoly->flag & ME_FACE_SEL) + } + else if (mpoly->flag & ME_FACE_SEL) { ((GPUPackedNormal *)data)[l].w = 1; - else + } + else { ((GPUPackedNormal *)data)[l].w = 0; + } } static const MeshExtract extract_lnor = { |