@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.
@@ -28863,9 +28863,12 @@ class Scene extends Component {
28863
28863
  * Default is ````0````.
28864
28864
  */
28865
28865
  set numCachedSectionPlanes(numCachedSectionPlanes) {
28866
- this._sectionPlanesState.setNumCachedSectionPlanes(numCachedSectionPlanes || 0);
28867
- this._needRecompile = true;
28868
- this.glRedraw();
28866
+ numCachedSectionPlanes = numCachedSectionPlanes || 0;
28867
+ if (this._sectionPlanesState.getNumCachedSectionPlanes() !== numCachedSectionPlanes) {
28868
+ this._sectionPlanesState.setNumCachedSectionPlanes(numCachedSectionPlanes);
28869
+ this._needRecompile = true;
28870
+ this.glRedraw();
28871
+ }
28869
28872
  }
28870
28873
 
28871
28874
  /**
@@ -28859,9 +28859,12 @@ class Scene extends Component {
28859
28859
  * Default is ````0````.
28860
28860
  */
28861
28861
  set numCachedSectionPlanes(numCachedSectionPlanes) {
28862
- this._sectionPlanesState.setNumCachedSectionPlanes(numCachedSectionPlanes || 0);
28863
- this._needRecompile = true;
28864
- this.glRedraw();
28862
+ numCachedSectionPlanes = numCachedSectionPlanes || 0;
28863
+ if (this._sectionPlanesState.getNumCachedSectionPlanes() !== numCachedSectionPlanes) {
28864
+ this._sectionPlanesState.setNumCachedSectionPlanes(numCachedSectionPlanes);
28865
+ this._needRecompile = true;
28866
+ this.glRedraw();
28867
+ }
28865
28868
  }
28866
28869
 
28867
28870
  /**
@@ -9069,7 +9069,7 @@ this.canvas.spinner.processes--;}/**
9069
9069
  * Sets whether physically-based rendering is enabled.
9070
9070
  *
9071
9071
  * Default is ````false````.
9072
- */,set:function set(numCachedSectionPlanes){this._sectionPlanesState.setNumCachedSectionPlanes(numCachedSectionPlanes||0);this._needRecompile=true;this.glRedraw();}},{key:"pbrEnabled",get:/**
9072
+ */,set:function set(numCachedSectionPlanes){numCachedSectionPlanes=numCachedSectionPlanes||0;if(this._sectionPlanesState.getNumCachedSectionPlanes()!==numCachedSectionPlanes){this._sectionPlanesState.setNumCachedSectionPlanes(numCachedSectionPlanes);this._needRecompile=true;this.glRedraw();}}},{key:"pbrEnabled",get:/**
9073
9073
  * Gets whether physically-based rendering is enabled.
9074
9074
  *
9075
9075
  * Default is ````false````.