@babylonjs/serializers 5.53.1 → 5.55.0

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.
@@ -1105,6 +1105,12 @@ export class _Exporter {
1105
1105
  if (babylonMesh instanceof LinesMesh) {
1106
1106
  return Material.LineListDrawMode;
1107
1107
  }
1108
+ if (babylonMesh instanceof InstancedMesh || babylonMesh instanceof Mesh) {
1109
+ const baseMesh = babylonMesh instanceof Mesh ? babylonMesh : babylonMesh.sourceMesh;
1110
+ if (typeof baseMesh.overrideRenderingFillMode === "number") {
1111
+ return baseMesh.overrideRenderingFillMode;
1112
+ }
1113
+ }
1108
1114
  return babylonMesh.material ? babylonMesh.material.fillMode : Material.TriangleFillMode;
1109
1115
  }
1110
1116
  /**