Fix problem with limit rotation constraints during transform. This code
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 19 Apr 2010 09:38:36 +0000 (09:38 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 19 Apr 2010 09:38:36 +0000 (09:38 +0000)
commit1dce678c2b411e0d2802ce1ff94438ac513e5064
treeca3ef7f7d5a739a7199ec7000e062870b6b1629c
parent3b502ca727563e2c58fa8396ea510d191a912518
Fix problem with limit rotation constraints during transform. This code
would convert from quat to matrix and back if the bone had any constraint,
but did not normalize the quat first as done in other places, giving a
sudden jump when starting transform on some bones with constraints. Two
changes:

* Normalize quaternion first.
* Only do this conversion on bones with limit rotation constraints,
  instead of all bones with any constraint.
source/blender/editors/transform/transform.c