Browse Source

Merge branch 'patch-6' of https://github.com/brason/three.js into dev

Conflicts:
	src/core/BufferGeometry.js
Mr.doob 10 years ago
parent
commit
c2da7a27d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/BufferGeometry.js

+ 1 - 1
src/core/BufferGeometry.js

@@ -474,7 +474,7 @@ THREE.BufferGeometry.prototype = {
 		if ( geometry.colors.length > 0 ) {
 
 			var colors = new Float32Array( geometry.colors.length * 3 );
-			this.addAttribute( 'color', new THREE.BufferAttribute( colors, 3 ).copyVector3sArray( geometry.colors ) );
+			this.addAttribute( 'color', new THREE.BufferAttribute( colors, 3 ).copyColorsArray( geometry.colors ) );
 
 		}