|
@@ -834,13 +834,7 @@ THREE.BufferGeometry.prototype = {
|
|
|
if ( attr == 'index' )
|
|
|
continue;
|
|
|
var sourceArray = this.attributes[ attr ].array;
|
|
|
- for ( var i = 0, il = types.length; i < il; i ++ ) {
|
|
|
- var type = types[ i ];
|
|
|
- if ( sourceArray instanceof type ) {
|
|
|
- sortedAttributes[ attr ] = new type( this.attributes[ attr ].itemSize * vertexCount );
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
+ sortedAttributes[ attr ] = new sourceArray.constructor( this.attributes[ attr ].itemSize * vertexCount );
|
|
|
}
|
|
|
|
|
|
/* Move attribute positions based on the new index map */
|