提交 3d5b5d51 编写于 作者: M Mr.doob

Merge pull request #7218 from tschw/FixIndexedRender

Showstoppers
......@@ -66,6 +66,8 @@ THREE.BufferGeometry.prototype = {
console.warn( 'THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.' );
this.setIndex( attribute );
return;
}
this.attributes[ name ] = attribute;
......
......@@ -804,11 +804,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( index !== null ) {
count = index.count;
} else if ( position instanceof THREE.InterleavedBufferAttribute ) {
count = position.data.array.length / 3;
count = index.array.length;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册