소스 검색

fix WebGLAttributes.remove bug

06wj 8 년 전
부모
커밋
746b308a6e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/renderers/webgl/WebGLAttributes.js

+ 2 - 0
src/renderers/webgl/WebGLAttributes.js

@@ -107,6 +107,8 @@ function WebGLAttributes( gl ) {
 
 	function remove( attribute ) {
 
+		if ( attribute.isInterleavedBufferAttribute ) attribute = attribute.data;
+		
 		var data = buffers[ attribute.uuid ];
 
 		if ( data ) {