@onerjs/loaders 8.23.8 → 8.23.10

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.
@@ -461,8 +461,14 @@ export class GLTFLoader {
461
461
  switch (this._parent.coordinateSystemMode) {
462
462
  case GLTFLoaderCoordinateSystemMode.AUTO: {
463
463
  if (!this._babylonScene.useRightHandedSystem) {
464
- rootNode.rotation = [0, 1, 0, 0];
465
- rootNode.scale = [1, 1, -1];
464
+ if (this._parent.autoConvertRootNodeCoordinateSystem ?? true) {
465
+ rootNode.rotation = [0, 1, 0, 0];
466
+ rootNode.scale = [1, 1, -1];
467
+ }
468
+ else {
469
+ rootNode.rotation = [0, 0, 0, 0];
470
+ rootNode.scale = [1, 1, 1];
471
+ }
466
472
  GLTFLoader._LoadTransform(rootNode, this._rootBabylonMesh);
467
473
  }
468
474
  break;
@@ -1296,6 +1302,9 @@ export class GLTFLoader {
1296
1302
  babylonAnimationGroup._parentContainer = this._assetContainer;
1297
1303
  this._babylonScene._blockEntityCollection = false;
1298
1304
  animation._babylonAnimationGroup = babylonAnimationGroup;
1305
+ if (animation.extras) {
1306
+ babylonAnimationGroup.metadata = animation.extras;
1307
+ }
1299
1308
  const promises = new Array();
1300
1309
  ArrayItem.Assign(animation.channels);
1301
1310
  ArrayItem.Assign(animation.samplers);