@xeokit/xeokit-sdk 2.4.2-beta-24 → 2.4.2-beta-26

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.4.2-beta-24",
3
+ "version": "2.4.2-beta-26",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -1279,9 +1279,12 @@ class Scene extends Component {
1279
1279
  * Default is ````0````.
1280
1280
  */
1281
1281
  set numCachedSectionPlanes(numCachedSectionPlanes) {
1282
- this._sectionPlanesState.setNumCachedSectionPlanes(numCachedSectionPlanes || 0);
1283
- this._needRecompile = true;
1284
- this.glRedraw();
1282
+ numCachedSectionPlanes = numCachedSectionPlanes || 0;
1283
+ if (this._sectionPlanesState.getNumCachedSectionPlanes() !== numCachedSectionPlanes) {
1284
+ this._sectionPlanesState.setNumCachedSectionPlanes(numCachedSectionPlanes);
1285
+ this._needRecompile = true;
1286
+ this.glRedraw();
1287
+ }
1285
1288
  }
1286
1289
 
1287
1290
  /**