Fix animated-interaction-mesh building bug.
Optimize.