mathutils quaternion axis/angle access was broken for non unit lenth quats, would...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 7 Dec 2010 01:38:42 +0000 (01:38 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 7 Dec 2010 01:38:42 +0000 (01:38 +0000)
commit7b39a7cdb9a1fd6dc08b3098800e0edce9d8a28e
tree36e863f5d2274ca5e0012bd10520a6cbde8c57c1
parent8bd5425a71420a4ff2a3bcc241795abb8d64b5e3
mathutils quaternion axis/angle access was broken for non unit lenth quats, would return NAN's in simple cases.
now normalize upon conversion, when setting the quat axis/ange, maintain length by scaling back to the original size afterwards.
source/blender/python/generic/mathutils_quat.c