diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 02:15:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 12:48:16 +0300 |
commit | a25a7714c592dff1fc1b3b4b0888bf984fa9e6fd (patch) | |
tree | 31335c1e02de10d3c97f9fdbe98b71ebc410e451 /source/blender/modifiers/intern/MOD_meshcache.c | |
parent | 6cc09d006af4a89cea14485e8e3896bd38a80e4b (diff) |
Cleanup: style, use braces for modifiers
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshcache.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_meshcache.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_meshcache.c b/source/blender/modifiers/intern/MOD_meshcache.c index cf1b2daa9cd..e01f07584ee 100644 --- a/source/blender/modifiers/intern/MOD_meshcache.c +++ b/source/blender/modifiers/intern/MOD_meshcache.c @@ -226,12 +226,15 @@ static void meshcache_do(MeshCacheModifierData *mcmd, if (mcmd->flip_axis) { float tmat[3][3]; unit_m3(tmat); - if (mcmd->flip_axis & (1 << 0)) + if (mcmd->flip_axis & (1 << 0)) { tmat[0][0] = -1.0f; - if (mcmd->flip_axis & (1 << 1)) + } + if (mcmd->flip_axis & (1 << 1)) { tmat[1][1] = -1.0f; - if (mcmd->flip_axis & (1 << 2)) + } + if (mcmd->flip_axis & (1 << 2)) { tmat[2][2] = -1.0f; + } mul_m3_m3m3(mat, tmat, mat); use_matrix = true; |