提交 39759360 编写于 作者: T Takahiro

GLTFExporter: Add geometry.index === null check for createing index

上级 79837149
......@@ -1007,10 +1007,10 @@ THREE.GLTFExporter.prototype = {
var forceIndices = options.forceIndices;
var isMultiMaterial = Array.isArray( mesh.material );
if ( ! forceIndices && isMultiMaterial ) {
if ( ! forceIndices && geometry.index === null && isMultiMaterial ) {
// temporal workaround.
console.warn( 'THREE.GLTFExporter: Force index for a mesh with multi-material.', mesh );
console.warn( 'THREE.GLTFExporter: Creating index for non-indexed multi-material mesh.' );
forceIndices = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册