Well testing with some models of mine does not cause any unwanted behaviour, the bones are copied as expected. The code looks good as well. I could not reproduce the problem.

If I had to take a guess I'd say it's an euler problem caused by the animation of your model, which somehow ends in a gimbal lock.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de