提交 6894f50e 编写于 作者: T Takahiro

Revert "GLTFExporter: Fix export of multi-material meshes."

This reverts commit aa3243fa.
上级 b6859429
......@@ -1358,16 +1358,14 @@ THREE.GLTFExporter.prototype = {
if ( geometry.index !== null ) {
var cacheKey = geometry.uuid + ':' + groups[ i ].start + ':' + groups[ i ].count;
if ( cachedData.attributes.has( cacheKey ) ) {
if ( cachedData.attributes.has( geometry.index ) ) {
primitive.indices = cachedData.attributes.get( geometry.index );
} else {
primitive.indices = processAccessor( geometry.index, geometry, groups[ i ].start, groups[ i ].count );
cachedData.attributes.set( cacheKey, primitive.indices );
cachedData.attributes.set( geometry.index, primitive.indices );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册