Fixed the exporter to have consistent vertex indices between different frames.