Browse Source

dispose other observable

Trevor Baron 6 năm trước cách đây
mục cha
commit
c63e874879
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/Cameras/XR/babylon.webXRSessionManager.ts

+ 1 - 0
src/Cameras/XR/babylon.webXRSessionManager.ts

@@ -166,6 +166,7 @@ module BABYLON {
          */
         public dispose() {
             this.onXRFrameObservable.clear();
+            this.onXRSessionEnded.clear();
         }
     }
 }