@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 +2 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1314,10 +1314,7 @@ var MToonAtlasExporterPlugin = class {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
|
1316
1316
|
});
|
|
1317
|
-
|
|
1318
|
-
if (!json.extensionsUsed.includes("KHR_texture_basisu")) {
|
|
1319
|
-
json.extensionsUsed.push("KHR_texture_basisu");
|
|
1320
|
-
}
|
|
1317
|
+
this.writer.extensionsUsed.KHR_texture_basisu = true;
|
|
1321
1318
|
return { textureIndex, imageDef };
|
|
1322
1319
|
}
|
|
1323
1320
|
/**
|
|
@@ -1650,10 +1647,7 @@ var MToonAtlasExporterPlugin = class {
|
|
|
1650
1647
|
}
|
|
1651
1648
|
this.updateMeshPrimitive(mesh, materials, materialIndexMap);
|
|
1652
1649
|
}
|
|
1653
|
-
|
|
1654
|
-
if (!json.extensionsUsed.includes(MTOON_ATLAS_EXTENSION_NAME)) {
|
|
1655
|
-
json.extensionsUsed.push(MTOON_ATLAS_EXTENSION_NAME);
|
|
1656
|
-
}
|
|
1650
|
+
this.writer.extensionsUsed[MTOON_ATLAS_EXTENSION_NAME] = true;
|
|
1657
1651
|
const updateMaterialDefsPromise = this.waitForAllTextureIndices().then(() => {
|
|
1658
1652
|
for (const [material, materialDef] of materialDefMap) {
|
|
1659
1653
|
const indices = this.textureIndices.get(material);
|