Browse Source

clear observables

Trevor Baron 7 năm trước cách đây
mục cha
commit
1bc983e922
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/Behaviors/Mesh/babylon.sixDofDragBehavior.ts

+ 2 - 0
src/Behaviors/Mesh/babylon.sixDofDragBehavior.ts

@@ -222,6 +222,8 @@ module BABYLON {
             if(this._virtualDragMesh){
                 this._virtualDragMesh.dispose();
             }
+            this.onDragEndObservable.clear();
+            this.onDragStartObservable.clear();
         }
     }
 }