BabylonJS / Exporters

Exporters for Babylon.js and gltf file formats
Other
597 stars 307 forks source link

Fixed morph targets to not be 0 index based #1110

Closed SergioRZMasson closed 5 months ago

SergioRZMasson commented 5 months ago

It looks like Max Script has some strange behavior regarding morph targets indexes. It does not start at 0 but if you ask for index 0 it returns the first element in the array. This was not been considerer when getting morph information from Max Script.

This fixes the following forum issue: https://forum.babylonjs.com/t/3ds-max-export-with-morph-attributes-missing-some-morph-attributes-targets/47051/8