@xeokit/xeokit-sdk 2.6.89 → 2.6.90

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.6.89",
3
+ "version": "2.6.90",
4
4
  "description": "3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -724,6 +724,7 @@ const Renderer = function (scene, options) {
724
724
 
725
725
  if (normalFillTransparentBinLen > 0) {
726
726
  const eye = frameCtx.pickOrigin || scene.camera.eye;
727
+ normalFillTransparentBin.length = normalFillTransparentBinLen; // normalFillTransparentBin reused by renderDrawables calls, so needs to be truncated if necessary
727
728
  const byDist = normalFillTransparentBin.map(d => ({ drawable: d, distSq: math.distVec3(d.origin || vec3_0, eye) }));
728
729
  byDist.sort((a, b) => b.distSq - a.distSq);
729
730
  for (i = 0; i < normalFillTransparentBinLen; i++) {