Explorar el Código

Update GLTFExporter.js

Remove optional chaining.
Michael Herzog hace 2 años
padre
commit
37609b1ce8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 ];
 
-		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.extensionsRequired[ KHR_MESH_QUANTIZATION ] = true;