diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-03-31 15:52:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-03-31 15:52:22 +0300 |
commit | 70fdf0fe37b37e798a5e116415c8699e3d652481 (patch) | |
tree | e3cc19476701686b9da48982df8b079101c00a5f /source/blender/modifiers/intern/MOD_mirror.c | |
parent | 0be064067a432da070add207a7f4a3201ce7f071 (diff) | |
parent | ff693959d89aeb7f763e0286f6fe63bdde20057c (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/modifiers/intern/MOD_mirror.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_mirror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_mirror.c b/source/blender/modifiers/intern/MOD_mirror.c index 8c01c560e75..39da0dacd8f 100644 --- a/source/blender/modifiers/intern/MOD_mirror.c +++ b/source/blender/modifiers/intern/MOD_mirror.c @@ -259,8 +259,8 @@ static DerivedMesh *doMirrorOnAxis(MirrorModifierData *mmd, int j = maxLoops; dmloopuv += j; /* second set of loops only */ for (; j-- > 0; dmloopuv++) { - if (do_mirr_u) dmloopuv->uv[0] = 1.0f - dmloopuv->uv[0]; - if (do_mirr_v) dmloopuv->uv[1] = 1.0f - dmloopuv->uv[1]; + if (do_mirr_u) dmloopuv->uv[0] = 1.0f - dmloopuv->uv[0] + mmd->uv_offset[0]; + if (do_mirr_v) dmloopuv->uv[1] = 1.0f - dmloopuv->uv[1] + mmd->uv_offset[1]; } } } |