提交 c9392974 编写于 作者: N Niels 提交者: Mr.doob

Set Face3 materialIndex when using MultiMaterial (#8598)

I noticed this was missing after updating from an older version of ColladaLoader.js. This fixes the face materialIndex not being set.
上级 173caa38
......@@ -1170,6 +1170,13 @@ THREE.ColladaLoader = function () {
if ( num_materials > 1 ) {
material = new THREE.MultiMaterial( used_materials_array );
for ( j = 0; j < geom.faces.length; j ++ ) {
var face = geom.faces[ j ];
face.materialIndex = used_materials[ face.daeMaterial ]
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册