babylonjs-loaders 5.52.0 → 5.53.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.
@@ -2121,10 +2121,14 @@ var TransmissionHelper = /** @class */ (function () {
2121
2121
  core_Materials_PBR_pbrMaterial__WEBPACK_IMPORTED_MODULE_1__.Tools.SetImmediate(function () {
2122
2122
  if (_this._shouldRenderAsTransmission(mesh.material)) {
2123
2123
  mesh.material.refractionTexture = _this._opaqueRenderTarget;
2124
- _this._transparentMeshesCache.push(mesh);
2124
+ if (_this._transparentMeshesCache.indexOf(mesh) === -1) {
2125
+ _this._transparentMeshesCache.push(mesh);
2126
+ }
2125
2127
  }
2126
2128
  else {
2127
- _this._opaqueMeshesCache.push(mesh);
2129
+ if (_this._opaqueMeshesCache.indexOf(mesh) === -1) {
2130
+ _this._opaqueMeshesCache.push(mesh);
2131
+ }
2128
2132
  }
2129
2133
  });
2130
2134
  };