Commit c6f0a18
Add support for MaterialId on multiMaterial (#927)
* Add support for MaterialId on multiMaterial
On Multi-Material, when user set it's own id, we must access the id using Max meshNode.NodeMaterial.GetMaterialID(i) instead of assign sequential index
* Update 3ds Max/Max2Babylon/Exporter/BabylonExporter.Mesh.cs
* Update 3ds Max/Max2Babylon/Exporter/BabylonExporter.Mesh.cs
Co-authored-by: Nicholas Barlow <whoisdrigax@gmail.com>1 parent c6bda67 commit c6f0a18
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
811 | | - | |
812 | 811 | | |
813 | 812 | | |
814 | 813 | | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
815 | 818 | | |
816 | | - | |
817 | 819 | | |
818 | 820 | | |
819 | 821 | | |
| |||
898 | 900 | | |
899 | 901 | | |
900 | 902 | | |
901 | | - | |
902 | 903 | | |
903 | 904 | | |
904 | | - | |
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
| |||
0 commit comments