Blender Git Commit Log

Git Commits -> Revision 262a33c

Revision 262a33c by Campbell Barton (master)
January 21, 2011, 03:18 (GMT)
change mathutils.Matrix.Shear() for 3x3 or 4x4 matrices

The plane which defined the shear had the factor applied to each axis equally.
This meant that the shear for any 3x3 or 4x4 matrix would be diagonal on the positive values of each axis.
Only being able to create diagonal shear matrices seems stupid, now take a pair of floats for the shear factor corresponding to the plane axis values, so its possible to shear on only one axis of the plane.

Commit Details:

Full Hash: 262a33cbe4250d9ce70af8d3582c98a1b6d21ab7
SVN Revision: 34433
Parent Commit: d7c6ddd
Lines Changed: +59, -38

2 Modified Paths:

/source/blender/python/generic/mathutils.c (+1, -0) (Diff)
/source/blender/python/generic/mathutils_Matrix.c (+58, -38) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021