Skip to content

Commit 97c70d2

Browse files
tschwmrdoob
authored andcommitted
BufferGeometry: Prevented duplicate index buffers.
1 parent f411533 commit 97c70d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/BufferGeometry.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ THREE.BufferGeometry.prototype = {
6666
console.warn( 'THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.' );
6767
this.setIndex( attribute );
6868

69+
return;
70+
6971
}
7072

7173
this.attributes[ name ] = attribute;

0 commit comments

Comments
 (0)