@onerjs/loaders 8.52.1 → 8.52.3

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.
@@ -755,7 +755,7 @@ export class GLTFLoader {
755
755
  const transformNode = this.parent.createEmptyNodeHandle ? this.parent.createEmptyNodeHandle(node, this._babylonScene) : new TransformNode(nodeName, this._babylonScene);
756
756
  transformNode._parentContainer = this._assetContainer;
757
757
  this._babylonScene._blockEntityCollection = false;
758
- if (node.mesh == undefined) {
758
+ if (!hasMesh) {
759
759
  node._babylonTransformNode = transformNode;
760
760
  }
761
761
  else {
@@ -1574,6 +1574,7 @@ export class GLTFLoader {
1574
1574
  const babylonAnimations = propertyInfo.buildAnimations(target, name, fps, keys);
1575
1575
  for (const babylonAnimation of babylonAnimations) {
1576
1576
  numAnimations++;
1577
+ babylonAnimation.babylonAnimation.metadata = channel.extras;
1577
1578
  onLoad(babylonAnimation.babylonAnimatable, babylonAnimation.babylonAnimation);
1578
1579
  }
1579
1580
  }