diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-05-15 19:02:02 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-05-15 19:02:02 +0400 |
commit | 5478b21b2845391c32799505253ca39a56181ee9 (patch) | |
tree | e12f1597043b6eb614131ec3badf87f46b307693 /source/blender | |
parent | 756bf3d052ccc22204d6dc07089a51e25fc46c86 (diff) |
Fix: mirror modifier only mirrors first UV map (IRC report).
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/modifiers/intern/MOD_mirror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_mirror.c b/source/blender/modifiers/intern/MOD_mirror.c index 5c9c4e76076..6f3d47b3426 100644 --- a/source/blender/modifiers/intern/MOD_mirror.c +++ b/source/blender/modifiers/intern/MOD_mirror.c @@ -258,7 +258,7 @@ static DerivedMesh *doMirrorOnAxis(MirrorModifierData *mmd, MLoopUV *dmloopuv = CustomData_get_layer_n(&result->loopData, CD_MLOOPUV, a); int j = maxLoops; dmloopuv += j; /* second set of loops only */ - for (; i-- > 0; dmloopuv++) { + 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]; } |