浏览代码

Update GLTFExporter.js

Remove optional chaining.
Michael Herzog 2 年之前
父节点
当前提交
37609b1ce8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/exporters/GLTFExporter.js

+ 1 - 1
examples/jsm/exporters/GLTFExporter.js

@@ -1888,7 +1888,7 @@ class GLTFWriter {
 
 
 		const attrNamePrefix = attributeName.split( '_', 1 )[ 0 ];
 		const attrNamePrefix = attributeName.split( '_', 1 )[ 0 ];
 
 
-		if ( KHR_mesh_quantization_ExtraAttrTypes[ attrNamePrefix ]?.includes( attrType ) ) {
+		if ( KHR_mesh_quantization_ExtraAttrTypes[ attrNamePrefix ] || KHR_mesh_quantization_ExtraAttrTypes[ attrNamePrefix ].includes( attrType ) ) {
 
 
 			this.extensionsUsed[ KHR_MESH_QUANTIZATION ] = true;
 			this.extensionsUsed[ KHR_MESH_QUANTIZATION ] = true;
 			this.extensionsRequired[ KHR_MESH_QUANTIZATION ] = true;
 			this.extensionsRequired[ KHR_MESH_QUANTIZATION ] = true;