@needle-tools/gltf-build-pipeline 2.4.0-alpha.1 → 2.4.0-alpha.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/CHANGELOG.md +3 -0
- package/dist/scripts/pack-gltf.js +4 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,9 @@ All notable changes to this package will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [2.4.0-alpha.2] - 2023-06-29
|
|
8
|
+
- fix: prevent joining/flattening of progressive assets
|
|
9
|
+
|
|
7
10
|
## [2.4.0-alpha.1] - 2023-06-26
|
|
8
11
|
- add: heuristic for choosing mesh compression if not explictly configured
|
|
9
12
|
|
|
@@ -90,11 +90,12 @@ export async function packGLTF(inputFile, outputFile, options) {
|
|
|
90
90
|
propertyTypes: ['MESH', 'MATERIAL', 'TEXTURE']
|
|
91
91
|
}));
|
|
92
92
|
}
|
|
93
|
-
await document.transform(...transforms);
|
|
94
93
|
const isVRM = inputFile.toLowerCase().endsWith(".vrm");
|
|
95
|
-
if (!isVRM && config?.usecase === "product") {
|
|
96
|
-
|
|
94
|
+
if (!isVRM && !isProgressiveAsset && config?.usecase === "product") {
|
|
95
|
+
transforms.push(flatten());
|
|
96
|
+
transforms.push(join({ keepNamed: false }));
|
|
97
97
|
}
|
|
98
|
+
await document.transform(...transforms);
|
|
98
99
|
if (!outputFile)
|
|
99
100
|
outputFile = inputFile;
|
|
100
101
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needle-tools/gltf-build-pipeline",
|
|
3
|
-
"version": "2.4.0-alpha.
|
|
3
|
+
"version": "2.4.0-alpha.2",
|
|
4
4
|
"description": "Pipeline and tools for optimizing gltf files using gltf-transform and compression settings within glTF extensions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|