|
@@ -2439,20 +2439,12 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
for ( var gltfAttributeName in attributes ) {
|
|
|
|
|
|
- var threeAttributeName = ATTRIBUTES[ gltfAttributeName ];
|
|
|
+ var threeAttributeName = ATTRIBUTES[ gltfAttributeName ] || gltfAttributeName.toLowerCase();
|
|
|
|
|
|
// Skip attributes already provided by e.g. Draco extension.
|
|
|
if ( threeAttributeName in geometry.attributes ) continue;
|
|
|
|
|
|
- if ( threeAttributeName ) {
|
|
|
-
|
|
|
- pending.push( assignAttributeAccessor( attributes[ gltfAttributeName ], threeAttributeName ) );
|
|
|
-
|
|
|
- } else {
|
|
|
-
|
|
|
- pending.push( assignAttributeAccessor( attributes[ gltfAttributeName ], gltfAttributeName.toLowerCase() ) );
|
|
|
-
|
|
|
- }
|
|
|
+ pending.push( assignAttributeAccessor( attributes[ gltfAttributeName ], threeAttributeName ) );
|
|
|
|
|
|
}
|
|
|
|