Przeglądaj źródła

whitespace error

Trevor Baron 7 lat temu
rodzic
commit
de2c83c3ef

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

@@ -12,7 +12,7 @@
   - New GUI container [SelectionPanel](http://doc.babylonjs.com/how_to/selector) ([JohnK](https://github.com/BabylonJSGuide))
 - Gizmo Support ([TrevorDev](https://github.com/TrevorDev))
   - Gizmo and GizmoManager classes used to manipulate meshes in a scene. Gizmo types include: position, scale, rotation and bounding box [Doc](http://doc.babylonjs.com/how_to/gizmo) ([TrevorDev](https://github.com/TrevorDev))
-  - New behaviors: PointerDragBehavior, SixDofDragBehavior and MultiPointerScaleBehavior to enable smooth drag and drop/scaling with mouse or 6dof controller on a mesh. [Doc](http://doc.babylonjs.com/how_to/meshbehavior) ([TrevorDev](https://github.com/TrevorDev))
+  - New behaviors: PointerDragBehavior, SixDofDragBehavior and MultiPointerScaleBehavior to enable smooth drag and drop/scaling with mouse or 6dof controller on a mesh [Doc](http://doc.babylonjs.com/how_to/meshbehavior) ([TrevorDev](https://github.com/TrevorDev))
   - Added attachToBoxBehavior to attach UI to a bounding box ([TrevorDev](https://github.com/TrevorDev))
   - Gizmo manager's internal gizmos are now public ([TrevorDev](https://github.com/TrevorDev))
   - Ability to customize meshes on gizmos ([TrevorDev](https://github.com/TrevorDev))

+ 3 - 3
src/Gizmos/babylon.gizmoManager.ts

@@ -63,11 +63,11 @@ module BABYLON {
                                 node = null;
                             }
                         }
-                        if(node instanceof AbstractMesh){
-                            if(this._attachedMesh != node){
+                        if (node instanceof AbstractMesh) {
+                            if (this._attachedMesh != node) {
                                 this.attachToMesh(node);
                             }
-                        }else{
+                        } else {
                             this.attachToMesh(null);
                         }
                     }else {