@needle-tools/three-animation-pointer 1.0.3 → 1.0.4
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
|
+
## [1.0.4] - 2025-10-08
|
|
8
|
+
- Add: KHR_node_visibility extension
|
|
9
|
+
|
|
7
10
|
## [1.0.3] - 2025-09-11
|
|
8
11
|
- Fix: Handle undefined path if AnimationClip tracks have invalid/unexpected names. Fallback to default three implementation
|
|
9
12
|
|
|
@@ -147,6 +147,9 @@ class j {
|
|
|
147
147
|
case "weights":
|
|
148
148
|
e = "morphTargetInfluences";
|
|
149
149
|
break;
|
|
150
|
+
case "KHR_node_visibility/visible":
|
|
151
|
+
e = "visible";
|
|
152
|
+
break;
|
|
150
153
|
}
|
|
151
154
|
o = l + e;
|
|
152
155
|
break;
|
|
@@ -288,13 +291,13 @@ class j {
|
|
|
288
291
|
]).then(function(h) {
|
|
289
292
|
const u = h[0], l = h[1], p = h[2], g = h[3], b = h[4], k = [];
|
|
290
293
|
for (let d = 0, T = u.length; d < T; d++) {
|
|
291
|
-
const _ = u[d],
|
|
294
|
+
const _ = u[d], P = l[d], A = p[d], K = g[d], N = b[d];
|
|
292
295
|
if (_ === void 0) continue;
|
|
293
296
|
_.updateMatrix && (_.updateMatrix(), _.matrixAutoUpdate = !0);
|
|
294
|
-
let y = t.createAnimationTracksWithAnimationPointer(_,
|
|
295
|
-
if (y || (y = e._createAnimationTracks(_,
|
|
296
|
-
for (let
|
|
297
|
-
k.push(y[
|
|
297
|
+
let y = t.createAnimationTracksWithAnimationPointer(_, P, A, K, N);
|
|
298
|
+
if (y || (y = e._createAnimationTracks(_, P, A, K, N)), y)
|
|
299
|
+
for (let v = 0; v < y.length; v++)
|
|
300
|
+
k.push(y[v]);
|
|
298
301
|
}
|
|
299
302
|
return new W(s, void 0, k);
|
|
300
303
|
});
|
package/package.json
CHANGED
|
@@ -260,7 +260,9 @@ export class GLTFAnimationPointerExtension {
|
|
|
260
260
|
case 'weights':
|
|
261
261
|
targetProperty = 'morphTargetInfluences';
|
|
262
262
|
break;
|
|
263
|
-
|
|
263
|
+
case "KHR_node_visibility/visible":
|
|
264
|
+
targetProperty = 'visible';
|
|
265
|
+
break;
|
|
264
266
|
}
|
|
265
267
|
|
|
266
268
|
path = pathStartNode + targetProperty;
|