diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-07-02 17:57:11 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-07-02 17:57:20 +0300 |
commit | a4fe8ef236b65210ef04945be7f3936757015b7f (patch) | |
tree | ccab27b8945d0afbe339036870010a2cf44ab1c7 /source/blender | |
parent | 06de1bddae65dca06ec44b996372ce6a6e8d70e8 (diff) |
Fix T78527: GPencil Mirror modifier is inconsistent with Mesh Mirror
The grease pencil mirror was using the current axis rotation but the mesh modifier doesn't use it.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c index 581eaa886d8..2105eb0304c 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c @@ -118,6 +118,8 @@ static void update_mirror_object(Object *ob, float eul[3]; mat4_to_eul(eul, mmd->object->obmat); mul_v3_fl(eul, 2.0f); + /* Don't apply rotation to current axis. */ + eul[axis] = 0.0f; eul_to_mat3(rot_mat, eul); sub_v3_v3v3(ob_origin, ob->obmat[3], mmd->object->obmat[3]); |