Trevor Baron 6 years ago
parent
commit
ae65f60285
4 changed files with 11 additions and 11 deletions
  1. 1 1
      dist/preview release/what's new.md
  2. 1 1
      src/Gizmos/boundingBoxGizmo.ts
  3. 7 7
      src/Meshes/abstractMesh.ts
  4. 2 2
      src/node.ts

+ 1 - 1
dist/preview release/what's new.md

@@ -209,7 +209,7 @@
 - CannonJS ignores connectedPivot joint parameter ([TrevorDev](https://github.com/TrevorDev))
 - Fix case sensitive paths ([mrdunk](https://github.com))
 - Fix more case sensitive paths ([mrdunk](https://github.com))
-- Attaching a BoundingBoxGizmo on a child should not remove its parent ([TrevorDev](https://github.com/TrevorDev))
+- Attaching a BoundingBoxGizmo on a child node should not remove its parent ([TrevorDev](https://github.com/TrevorDev))
 - AmmoJS fix include issue caused after modules update and use world contact point to be consistent with Oimo and Cannon ([TrevorDev](https://github.com/TrevorDev))
 - Warn of motor with maxForce in Oimo plugin and set default force to be consistent with others, cannonJS support no impostor, cannonJS cylinder axis, ammoJS wake up impostor when apply force/impulse ([TrevorDev](https://github.com/TrevorDev))
 - Utility layer should render on last active camera ([TrevorDev](https://github.com/TrevorDev))

+ 1 - 1
src/Gizmos/boundingBoxGizmo.ts

@@ -90,7 +90,7 @@ export class BoundingBoxGizmo extends Gizmo {
      * Mesh used as a pivot to rotate the attached mesh
      */
     private _anchorMesh: AbstractMesh;
-    
+
     private _existingMeshScale = new Vector3();
 
     // Dragging

+ 7 - 7
src/Meshes/abstractMesh.ts

@@ -1129,20 +1129,20 @@ export class AbstractMesh extends TransformNode implements IDisposable, ICullabl
         return new Vector3(flipBack * defForwardMult, twirlClockwise, tiltRight * defForwardMult);
     }
 
-    protected _getBoudingInfoMin(){
-        if(this.subMeshes){
+    protected _getBoudingInfoMin() {
+        if (this.subMeshes) {
             let boundingInfo = this.getBoundingInfo();
             return boundingInfo.boundingBox.minimumWorld;
-        }else{
+        }else {
             return new Vector3(Number.MAX_VALUE, Number.MAX_VALUE, Number.MAX_VALUE);
         }
-        
+
     }
-    protected _getBoudingInfoMax(){
-        if(this.subMeshes){
+    protected _getBoudingInfoMax() {
+        if (this.subMeshes) {
             let boundingInfo = this.getBoundingInfo();
             return boundingInfo.boundingBox.maximumWorld;
-        }else{
+        }else {
             return new Vector3(-Number.MAX_VALUE, -Number.MAX_VALUE, -Number.MAX_VALUE);
         }
     }

+ 2 - 2
src/node.ts

@@ -766,10 +766,10 @@ export class Node implements IBehaviorAware<Node> {
         this._behaviors = [];
     }
 
-    protected _getBoudingInfoMin(){
+    protected _getBoudingInfoMin() {
         return new Vector3(Number.MAX_VALUE, Number.MAX_VALUE, Number.MAX_VALUE);
     }
-    protected _getBoudingInfoMax(){
+    protected _getBoudingInfoMax() {
         return new Vector3(-Number.MAX_VALUE, -Number.MAX_VALUE, -Number.MAX_VALUE);
     }