Explorar o código

Fixed BufferAttribute.copyColorsArray().

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
091864ceb5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/core/BufferAttribute.js

+ 2 - 2
src/core/BufferAttribute.js

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

粤ICP备19079148号