Trevor Baron %!s(int64=7) %!d(string=hai) anos
pai
achega
3e479c1fbe

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

@@ -13,7 +13,7 @@ module BABYLON {
          * Event that fires each time the gizmo snaps to a new location.
          * * snapDistance is the the change in distance
          */
-        public snapObservable = new Observable<{snapDistance:number}>();
+        public onSnapObservable = new Observable<{snapDistance:number}>();
         /**
          * Creates an AxisDragGizmo
          * @param gizmoLayer The utility layer the gizmo will be added to
@@ -73,7 +73,7 @@ module BABYLON {
                             event.delta.normalizeToRef(tmpVector);
                             tmpVector.scaleInPlace(this.snapDistance*dragSteps);
                             this.attachedMesh.position.addInPlace(tmpVector);
-                            this.snapObservable.notifyObservers({snapDistance: this.snapDistance*dragSteps});
+                            this.onSnapObservable.notifyObservers({snapDistance: this.snapDistance*dragSteps});
                         }
                     }
                 }

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

@@ -13,7 +13,7 @@ module BABYLON {
          * Event that fires each time the gizmo snaps to a new location.
          * * snapDistance is the the change in distance
          */
-        public snapObservable = new Observable<{snapDistance:number}>();
+        public onSnapObservable = new Observable<{snapDistance:number}>();
         /**
          * Creates an AxisScaleGizmo
          * @param gizmoLayer The utility layer the gizmo will be added to
@@ -98,7 +98,7 @@ module BABYLON {
                     }
 
                     if(snapped){
-                        this.snapObservable.notifyObservers({snapDistance: this.snapDistance*dragSteps});
+                        this.onSnapObservable.notifyObservers({snapDistance: this.snapDistance*dragSteps});
                     }
                 }
             })

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

@@ -14,7 +14,7 @@ module BABYLON {
          * Event that fires each time the gizmo snaps to a new location.
          * * snapDistance is the the change in distance
          */
-        public snapObservable = new Observable<{snapDistance:number}>();
+        public onSnapObservable = new Observable<{snapDistance:number}>();
 
         /**
          * Creates a PlaneRotationGizmo
@@ -118,7 +118,7 @@ module BABYLON {
 
                     lastDragPosition = event.dragPlanePoint;
                     if(snapped){
-                        this.snapObservable.notifyObservers({snapDistance: angle});
+                        this.onSnapObservable.notifyObservers({snapDistance: angle});
                     }
                 }
             })