소스 검색

dispose other observable

Trevor Baron 6 년 전
부모
커밋
c63e874879
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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();
         }
     }
 }