copy animationClip function modify.