소스 검색

BufferGeometry: Prevented duplicate index buffers.

tschw 10 년 전
부모
커밋
97c70d207f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/core/BufferGeometry.js

+ 2 - 0
src/core/BufferGeometry.js

@@ -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;