浏览代码

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();
 
 			}