@webxr-jp/mtoon-atlas 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1363,10 +1363,7 @@ var MToonAtlasExporterPlugin = class {
1363
1363
  }
1364
1364
  }
1365
1365
  });
1366
- json.extensionsUsed = json.extensionsUsed || [];
1367
- if (!json.extensionsUsed.includes("KHR_texture_basisu")) {
1368
- json.extensionsUsed.push("KHR_texture_basisu");
1369
- }
1366
+ this.writer.extensionsUsed.KHR_texture_basisu = true;
1370
1367
  return { textureIndex, imageDef };
1371
1368
  }
1372
1369
  /**
@@ -1699,10 +1696,7 @@ var MToonAtlasExporterPlugin = class {
1699
1696
  }
1700
1697
  this.updateMeshPrimitive(mesh, materials, materialIndexMap);
1701
1698
  }
1702
- json.extensionsUsed = json.extensionsUsed || [];
1703
- if (!json.extensionsUsed.includes(MTOON_ATLAS_EXTENSION_NAME)) {
1704
- json.extensionsUsed.push(MTOON_ATLAS_EXTENSION_NAME);
1705
- }
1699
+ this.writer.extensionsUsed[MTOON_ATLAS_EXTENSION_NAME] = true;
1706
1700
  const updateMaterialDefsPromise = this.waitForAllTextureIndices().then(() => {
1707
1701
  for (const [material, materialDef] of materialDefMap) {
1708
1702
  const indices = this.textureIndices.get(material);