@needle-tools/three 0.154.1 → 0.154.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.
|
@@ -4269,7 +4269,6 @@ class GLTFParser {
|
|
|
4269
4269
|
const tracks = [];
|
|
4270
4270
|
|
|
4271
4271
|
const targetName = node.name ? node.name : node.uuid;
|
|
4272
|
-
|
|
4273
4272
|
const targetNames = [];
|
|
4274
4273
|
|
|
4275
4274
|
if ( PATH_PROPERTIES[ target.path ] === PATH_PROPERTIES.weights ) {
|
|
@@ -4306,7 +4305,12 @@ class GLTFParser {
|
|
|
4306
4305
|
|
|
4307
4306
|
case PATH_PROPERTIES.position:
|
|
4308
4307
|
case PATH_PROPERTIES.scale:
|
|
4308
|
+
|
|
4309
|
+
TypedKeyframeTrack = VectorKeyframeTrack;
|
|
4310
|
+
break;
|
|
4311
|
+
|
|
4309
4312
|
default:
|
|
4313
|
+
|
|
4310
4314
|
switch ( outputAccessor.itemSize ) {
|
|
4311
4315
|
|
|
4312
4316
|
case 1:
|
|
@@ -4314,6 +4318,7 @@ class GLTFParser {
|
|
|
4314
4318
|
break;
|
|
4315
4319
|
case 2:
|
|
4316
4320
|
case 3:
|
|
4321
|
+
default:
|
|
4317
4322
|
TypedKeyframeTrack = VectorKeyframeTrack;
|
|
4318
4323
|
break;
|
|
4319
4324
|
|
|
@@ -4325,6 +4330,7 @@ class GLTFParser {
|
|
|
4325
4330
|
|
|
4326
4331
|
const interpolation = sampler.interpolation !== undefined ? INTERPOLATION[ sampler.interpolation ] : InterpolateLinear;
|
|
4327
4332
|
|
|
4333
|
+
|
|
4328
4334
|
const outputArray = this._getArrayFromAccessor( outputAccessor );
|
|
4329
4335
|
|
|
4330
4336
|
for ( let j = 0, jl = targetNames.length; j < jl; j ++ ) {
|
|
@@ -4337,7 +4343,7 @@ class GLTFParser {
|
|
|
4337
4343
|
);
|
|
4338
4344
|
|
|
4339
4345
|
// Override interpolation with custom factory method.
|
|
4340
|
-
if ( interpolation === 'CUBICSPLINE' ) {
|
|
4346
|
+
if ( sampler.interpolation === 'CUBICSPLINE' ) {
|
|
4341
4347
|
|
|
4342
4348
|
this._createCubicSplineTrackInterpolant( track );
|
|
4343
4349
|
|
|
@@ -72,8 +72,8 @@ class GLTFAnimationPointerExtension {
|
|
|
72
72
|
const uuid = nextIndex < 0 ? remainingPath : remainingPath.substring( 0, nextIndex );
|
|
73
73
|
let res = null;
|
|
74
74
|
node.traverse( x => {
|
|
75
|
-
|
|
76
|
-
if ( res !== null || x.type !== 'Mesh' ) return;
|
|
75
|
+
|
|
76
|
+
if ( res !== null || (x.type !== 'Mesh' && x.type !== 'SkinnedMesh') ) return;
|
|
77
77
|
if ( x[ 'material' ] && (x[ 'material' ].uuid === uuid || x[ 'material' ].name === uuid )) {
|
|
78
78
|
|
|
79
79
|
res = x[ 'material' ];
|