@needle-tools/gltf-build-pipeline 2.10.1 → 2.10.2-next.efa41cf
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,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.10.2] - 2025-07-17
|
|
8
|
+
- fix: issue where draco compression fails with `[KHR_draco_mesh_compression] Accessor cannot be shared by compressed and uncompressed primitives`
|
|
9
|
+
|
|
7
10
|
## [2.10.1] - 2025-07-09
|
|
8
11
|
- add: support for Needle MaterialX extensions
|
|
9
12
|
- bump gltf-transform to 4.1.4
|
|
@@ -7,7 +7,7 @@ import { MeshoptDecoder, MeshoptEncoder } from 'meshoptimizer';
|
|
|
7
7
|
import { dedup, flatten, join, prune, resample } from '@gltf-transform/functions';
|
|
8
8
|
import { ALL_EXTENSIONS as NEEDLE_EXTENSIONS, NEEDLE_compression_texture, NEEDLE_mesh_compression, } from '../extensions/index.js';
|
|
9
9
|
import { isLOD, isMeshLOD, needle_animation_transform, needle_asset, needle_mesh_transform, needle_texture_transform, } from '../transforms/index.js';
|
|
10
|
-
import { getOutputPath, ioTryReadWithMissingResources, writeNodeIO } from "../utils/index.js";
|
|
10
|
+
import { getOutputPath, getVersion, ioTryReadWithMissingResources, writeNodeIO } from "../utils/index.js";
|
|
11
11
|
import { addToCache, getHash, tryGetFromCache, } from "../cache/index.js";
|
|
12
12
|
/** Compress a glTF file
|
|
13
13
|
*/
|
|
@@ -101,6 +101,7 @@ export async function packGLTF(inputFile, outputFile, options) {
|
|
|
101
101
|
PropertyType.BUFFER,
|
|
102
102
|
],
|
|
103
103
|
keepAttributes: true,
|
|
104
|
+
keepIndices: true,
|
|
104
105
|
keepExtras: true,
|
|
105
106
|
keepSolidTextures: true,
|
|
106
107
|
}));
|
|
@@ -129,7 +130,7 @@ export async function packGLTF(inputFile, outputFile, options) {
|
|
|
129
130
|
return true;
|
|
130
131
|
}
|
|
131
132
|
catch (err) {
|
|
132
|
-
logger.error(`Packing
|
|
133
|
+
logger.error(`Packing of "${path.basename(inputFile)}" using version ${getVersion()} failed with error:\n${err.message}`);
|
|
133
134
|
if (debug)
|
|
134
135
|
throw err;
|
|
135
136
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.10.
|
|
1
|
+
export declare const version = "2.10.2-next.efa41cf";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "2.10.
|
|
1
|
+
export const version = "2.10.2-next.efa41cf";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needle-tools/gltf-build-pipeline",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.2-next.efa41cf",
|
|
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",
|