@needle-tools/gltf-build-pipeline 1.0.1 → 1.0.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
CHANGED
|
@@ -4,6 +4,10 @@ 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
|
+
## [1.0.2] - 2023-04-19
|
|
8
|
+
- change: progressive should not log error out when running for already compressed gltf
|
|
9
|
+
- change: ignore EXT_texture_exr extension re-assignment
|
|
10
|
+
|
|
7
11
|
## [1.0.1] - 2023-04-17
|
|
8
12
|
- fix: register meshopt decoder
|
|
9
13
|
- fix: catch exception in document read
|
|
@@ -400,7 +400,8 @@ class TextureHandler {
|
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
402
|
if (foundTexture === false) {
|
|
403
|
-
|
|
403
|
+
if (this.key !== "EXT_texture_exr" || this.debug)
|
|
404
|
+
console.warn("WARN: failed to re-assign extension:", this.key, this.index, this.tryGetSourceIndex(this.textureDefinition), textureDefs.length);
|
|
404
405
|
}
|
|
405
406
|
// this.document
|
|
406
407
|
// .getRoot()
|
|
@@ -45,7 +45,12 @@ async function process(file, opts) {
|
|
|
45
45
|
'meshopt.decoder': MeshoptDecoder,
|
|
46
46
|
});
|
|
47
47
|
const document = await io.read(file).catch((err) => {
|
|
48
|
-
|
|
48
|
+
// Log this message as a warning, it happens when trying to run on a already compressed gltf file (e.g. pre-processed. When logging an error we fail the build which is not desired)
|
|
49
|
+
if (err.message === "Cannot read properties of undefined (reading 'DT_FLOAT32')") {
|
|
50
|
+
console.log("WARN: \"" + err.message + "\" at \"" + file + "\"");
|
|
51
|
+
}
|
|
52
|
+
else
|
|
53
|
+
console.log("ERR: \"" + err.message + "\" at \"" + file + "\"");
|
|
49
54
|
return;
|
|
50
55
|
});
|
|
51
56
|
if (document) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needle-tools/gltf-build-pipeline",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Pipeline and tools for optimizing gltf files using gltf-transform and compression settings within glTF extensions",
|
|
5
5
|
"main": "index.mjs",
|
|
6
6
|
"type": "module",
|