소스 검색

Fixed BufferAttribute.copyColorsArray().

Mr.doob 10 년 전
부모
커밋
091864ceb5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/core/BufferAttribute.js

+ 2 - 2
src/core/BufferAttribute.js

@@ -44,10 +44,10 @@ THREE.BufferAttribute.prototype = {
 
 			var color = colors[ i ];
 
-			if ( vector === undefined ) {
+			if ( color === undefined ) {
 
 				console.warn( 'THREE.BufferAttribute.copyColorsArray(): color is undefined', i );
-				vector = new THREE.Color();
+				color = new THREE.Color();
 
 			}