Browse Source

BufferGeometryLoader: Use addAttribute().

Mr.doob 11 years ago
parent
commit
ff0f9e720e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/loaders/BufferGeometryLoader.js

+ 1 - 1
src/loaders/BufferGeometryLoader.js

@@ -43,7 +43,7 @@ THREE.BufferGeometryLoader.prototype = {
 			var attribute = attributes[ key ];
 			var attribute = attributes[ key ];
 			var typedArray = new self[ attribute.type ]( attribute.array );
 			var typedArray = new self[ attribute.type ]( attribute.array );
 
 
-			geometry.attributes[ key ] = new THREE.BufferAttribute( typedArray, attribute.itemSize );
+			geometry.addAttribute( key, new THREE.BufferAttribute( typedArray, attribute.itemSize ) );
 
 
 		}
 		}