@xeokit/xeokit-sdk 2.6.97 → 2.6.98

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.97",
3
+ "version": "2.6.98",
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",
@@ -909,6 +909,7 @@ class Component {
909
909
  this._eventCallDepth = 0;
910
910
  this._ownedComponents = null;
911
911
  this._updateScheduled = false;
912
+ this._renderer = null;
912
913
  }
913
914
  }
914
915
 
@@ -2115,9 +2115,9 @@ const math = {
2115
2115
 
2116
2116
  const sy = math.lenVec3(vec);
2117
2117
 
2118
- vec[8] = mat[8];
2119
- vec[9] = mat[9];
2120
- vec[10] = mat[10];
2118
+ vec[0] = mat[8];
2119
+ vec[1] = mat[9];
2120
+ vec[2] = mat[10];
2121
2121
 
2122
2122
  const sz = math.lenVec3(vec);
2123
2123
 
@@ -5,7 +5,7 @@ export const SnapProgram = function(programVariables, geometry, isSnapInit, isPo
5
5
  const coordinateScaler = programVariables.createUniform("vec3", "coordinateScaler", (set, state) => set(state.legacyFrameCtx.snapPickCoordinateScale));
6
6
 
7
7
  const vWorldPosition = programVariables.createVarying("vec3", "vWorldPosition", () => `${geometry.attributes.position.world}.xyz`);
8
- const vPickColor = programVariables.createVarying("vec4", "vPickColor", () => geometry.attributes.pickColor, "flat");
8
+ const vPickColor = programVariables.createVarying("vec4", "vPickColor", () => geometry.attributes.pickColor); // Using `flat` causes an instability - see XEOK-385 and XEOK-401
9
9
 
10
10
  const outCoords = programVariables.createOutput("highp ivec4", "outCoords", 0);
11
11
  const outNormal = programVariables.createOutput("highp ivec4", "outNormal", 1);