Fixed vertex index bug.
Merge remote-tracking branch 'upstream/master'