@onerjs/loaders 8.23.9 → 8.23.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.
@@ -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;