Просмотр исходного кода

Fixed BufferAttribute.copyColorsArray().

Mr.doob 10 лет назад
Родитель
Сommit
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();
 
 			}
 

粤ICP备19079148号