@needle-tools/gltf-build-pipeline 2.2.0-alpha.10 → 2.2.0-alpha.11

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.2.0-alpha.11] - 2023-06-14
8
+ - fix: issue where progressive transform with un-indexed meshes would fail
9
+
7
10
  ## [2.2.0-alpha.10] - 2023-06-13
8
11
  - fix: progressive transform of converted GLB files where meshes don't have indicies
9
12
  - fix: skip progressive texture generation for textures for textures that already match the lowest LOD size
@@ -709,7 +709,7 @@ function clonePrimitiveData(prim, logger) {
709
709
  return null;
710
710
  }
711
711
  const prevIndices = prim.getIndices();
712
- const indices = !prevIndices ? null : new Uint32Array(prevIndices.getArray());
712
+ const indices = !prevIndices ? new Uint32Array() : new Uint32Array(prevIndices.getArray());
713
713
  const attributes = {};
714
714
  for (const attr of semantics) {
715
715
  logger.info(`[${NAME}] Clone attribute ${attr}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@needle-tools/gltf-build-pipeline",
3
- "version": "2.2.0-alpha.10",
3
+ "version": "2.2.0-alpha.11",
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",