提交 a189cc22 编写于 作者: A Arseny Kapoulkine

GLTFLoader: Use extensionName for extensions[] access consistently

This is a minor cleanup - two of 5 extensions spelled out the extension
name twice, one as a case label and once as an array index.
上级 c2cf0d97
......@@ -181,11 +181,11 @@ THREE.GLTFLoader = ( function () {
break;
case EXTENSIONS.MSFT_TEXTURE_DDS:
extensions[ EXTENSIONS.MSFT_TEXTURE_DDS ] = new GLTFTextureDDSExtension( this.ddsLoader );
extensions[ extensionName ] = new GLTFTextureDDSExtension( this.ddsLoader );
break;
case EXTENSIONS.KHR_TEXTURE_TRANSFORM:
extensions[ EXTENSIONS.KHR_TEXTURE_TRANSFORM ] = new GLTFTextureTransformExtension();
extensions[ extensionName ] = new GLTFTextureTransformExtension();
break;
default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册