Explorar o código

BufferGeometryLoader: Use addAttribute().

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
ff0f9e720e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 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 ) );
 
 		}