|
@@ -1003,13 +1003,17 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
|
|
|
var array = Array.prototype.slice.call( attribute.array );
|
|
var array = Array.prototype.slice.call( attribute.array );
|
|
|
|
|
|
- data.data.attributes[ key ] = {
|
|
|
|
|
|
+ var attributeData = {
|
|
itemSize: attribute.itemSize,
|
|
itemSize: attribute.itemSize,
|
|
type: attribute.array.constructor.name,
|
|
type: attribute.array.constructor.name,
|
|
array: array,
|
|
array: array,
|
|
normalized: attribute.normalized
|
|
normalized: attribute.normalized
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ if ( attribute.name !== '' ) attributeData.name = attribute.name;
|
|
|
|
+
|
|
|
|
+ data.data.attributes[ key ] = attributeData;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
var morphAttributes = {};
|
|
var morphAttributes = {};
|