Преглед на файлове

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