Blender Git Loki

Git Commits -> Revision ec39d8d

Revision ec39d8d by Henrik Dick (master)
December 2, 2020, 12:22 (GMT)
Transform: Correct Mirror for Object Mode along arbitrary axis

This fixes T68521, T82334.

The object are not properly mirrored in object mode.

For mirroring an object that has an arbitrary rotation along the X axis
this is the procedure:
1. mirror x location.
2. negate x scale of the
3. negate y and z component of the rotation (independent of which rotation mode is used).

This knowledge applies now for all angles and axes to finally make the
mirror operation work in object mode.

The new mirror function has the downside that it can not (in this form)
be used with proportional editing.

This is no problem since the old behavior can still be replicated by
scaling with -1 along any axis.

The solution to get perfect mirrors can not work for scaling in general,
because in that case there could be scew created.

Reviewed By: mano-wii

Differential Revision: https://developer.blender.org/D9625

Commit Details:

Full Hash: ec39d8de4adf46161d81fb525a73278fe08a8704
Parent Commit: da8dc20
Committed By: Germano Cavalcante
Lines Changed: +141, -17

4 Modified Paths:

/source/blender/editors/transform/transform_mode.c (+2, -2) (Diff)
/source/blender/editors/transform/transform_mode.h (+2, -0) (Diff)
/source/blender/editors/transform/transform_mode_mirror.c (+136, -13) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021