Procházet zdrojové kódy

Update GLTFExporter.js

Michael Herzog před 3 roky
rodič
revize
076feca284
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 ] || 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;

粤ICP备19079148号