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:
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshcache.c')
-rw-r--r--source/blender/modifiers/intern/MOD_meshcache.c9
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;