@@ -97,6 +97,7 @@ module BABYLON {
* Disposes of the gizmo
*/
public dispose(){
+ this.onSnapObservable.clear();
this.gizmoLayer.utilityLayerScene.onPointerObservable.remove(this._pointerObserver);
this._dragBehavior.detach();
super.dispose();
@@ -121,6 +121,7 @@ module BABYLON {
@@ -142,6 +142,7 @@ module BABYLON {