提交 6a03a339 编写于 作者: S Sneha Belkhale

refining if statements

上级 415b3371
......@@ -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 ) );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册