提交 b14f706e 编写于 作者: T Takahiro

GLTFExporter: Clean up forceIndices

上级 7030a46c
......@@ -1008,10 +1008,9 @@ THREE.GLTFExporter.prototype = {
if ( geometry.index === null && options.forceIndices ) {
var numFaces = geometry.attributes.position.count;
var indices = new Uint32Array( numFaces );
var indices = new Uint32Array( geometry.attributes.position.count );
for ( var i = 0; i < numFaces; i ++ ) {
for ( var i = 0, il = indices.length; i < il; i ++ ) {
indices[ i ] = i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册