@onerjs/loaders 8.37.2 → 8.37.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.
@@ -851,7 +851,12 @@ export class GLTFLoader {
851
851
  const babylonMesh = new Mesh(name, this._babylonScene);
852
852
  babylonMesh._parentContainer = this._assetContainer;
853
853
  this._babylonScene._blockEntityCollection = false;
854
- babylonMesh.sideOrientation = this._babylonScene.useRightHandedSystem ? Material.CounterClockWiseSideOrientation : Material.ClockWiseSideOrientation;
854
+ if (this.parent.useMeshSideOrientation && typeof mesh.sideOrientation === "number") {
855
+ babylonMesh.sideOrientation = mesh.sideOrientation;
856
+ }
857
+ else {
858
+ babylonMesh.sideOrientation = this._babylonScene.useRightHandedSystem ? Material.CounterClockWiseSideOrientation : Material.ClockWiseSideOrientation;
859
+ }
855
860
  this._createMorphTargets(context, node, mesh, primitive, babylonMesh);
856
861
  promises.push(this._loadVertexDataAsync(context, primitive, babylonMesh).then(async (babylonGeometry) => {
857
862
  return await this._loadMorphTargetsAsync(context, primitive, babylonMesh, babylonGeometry).then(() => {