Blender Git Loki

Git Commits -> Revision 4846342

October 27, 2020, 11:03 (GMT)
Negate Shear in Copy Rotation

This patch negates the effects of shear in the Copy Rotation constraint, which causes incorrect results and even flipping on rare occasions.

Here is the bug report associated with the issue: T80970
This bug report has an example of the problem in a .blend file.

This patch will change existing .blend files if a copy rotation constraint is used with a target that has shearing -- instead of pointing in the "wrong" direction (due to the shear), the constrained object will copy the final rotation of the target, with the shearing applied.

Proposed Solution: Correct the matrix of the constraint target for shear.

Limitations of proposed solution:
- It's conceivable that someone has used the "incorrect behaviour" in a rig... although I doubt this. It may be necessary to create an "allow shear" checkbox that is disabled by default to maintain the legacy behaviour.

No UI changes are needed for this patch :)

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

Commit Details:

Full Hash: 4846342b95cd3a8c12250f742f64c844dbe10c73
Parent Commit: 4b188bb
Committed By: Sybren A. Stüvel
Lines Changed: +5, -1

1 Modified Path:

/source/blender/blenkernel/intern/constraint.c (+5, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021