Trevor Baron 7 years ago
parent
commit
f0cfd54df5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Gizmos/babylon.boundingBoxGizmo.ts

+ 2 - 2
src/Gizmos/babylon.boundingBoxGizmo.ts

@@ -69,7 +69,7 @@ module BABYLON {
         private _oldPivotPoint = new Vector3();
         private _oldPivotPoint = new Vector3();
         private _pivotTranslation = new Vector3();
         private _pivotTranslation = new Vector3();
         private removeAndStorePivotPoint(){
         private removeAndStorePivotPoint(){
-            if(this.attachedMesh && this._pivotCached == 0){
+            if(this.attachedMesh && this._pivotCached === 0){
                 // Save old pivot and set pivot to 0,0,0
                 // Save old pivot and set pivot to 0,0,0
                 this.attachedMesh.getPivotPointToRef(this._oldPivotPoint);
                 this.attachedMesh.getPivotPointToRef(this._oldPivotPoint);
                 if(this._oldPivotPoint.equalsToFloats(0,0,0)){
                 if(this._oldPivotPoint.equalsToFloats(0,0,0)){
@@ -85,7 +85,7 @@ module BABYLON {
             this._pivotCached++;
             this._pivotCached++;
         }
         }
         private restorePivotPoint(){
         private restorePivotPoint(){
-            if(this.attachedMesh && !this._oldPivotPoint.equalsToFloats(0,0,0) && this._pivotCached == 1){
+            if(this.attachedMesh && !this._oldPivotPoint.equalsToFloats(0,0,0) && this._pivotCached === 1){
                 this.attachedMesh.setPivotPoint(this._oldPivotPoint);
                 this.attachedMesh.setPivotPoint(this._oldPivotPoint);
                 this._tmpVector.copyFromFloats(1,1,1);
                 this._tmpVector.copyFromFloats(1,1,1);
                 this._tmpVector.subtractInPlace(this.attachedMesh.scaling);
                 this._tmpVector.subtractInPlace(this.attachedMesh.scaling);