Exportation fails when mesh have non consecutive material id.
Exportation fails when mesh have non consecutive material id.