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:
authorAntonio Vazquez <blendergit@gmail.com>2020-07-02 17:57:11 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-07-02 17:57:20 +0300
commita4fe8ef236b65210ef04945be7f3936757015b7f (patch)
treeccab27b8945d0afbe339036870010a2cf44ab1c7 /source/blender/gpencil_modifiers
parent06de1bddae65dca06ec44b996372ce6a6e8d70e8 (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/gpencil_modifiers')
-rw-r--r--source/blender/gpencil_modifiers/intern/MOD_gpencilmirror.c2
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]);