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.
This commit is contained in:
parent
06de1bddae
commit
a4fe8ef236
Notes:
blender-bot
2023-10-18 15:23:11 +02:00
Referenced by issue #78527, GPencil: Mirror is inconsistent with Mesh Mirror
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue