mathutils.Matrix.Shear incorrectly sets the Z→Z matrix element to 0 when compuing a shear in the XY plane. For example, the three expressions
mathutils.Matrix.Shear("XZ", 0, 4) mathutils.Matrix.Shear("YZ", 0, 4) mathutils.Matrix.Shear("XY", 0, 4)
should all return the identity matrix. In fact the last one returns
Matrix((1.0, 0.0, 0.0, 0.0), (0.0, 1.0, 0.0, 0.0), (0.0, 0.0, 0.0, 0.0), (0.0, 0.0, 0.0, 1.0))
Notice the third row is all zeroes, when it should be
(0.0, 0.0, 1.0, 0.0),
|