Преглед на файлове

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 ];
 
-		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;