Sfoglia il codice sorgente

dispose other observable

Trevor Baron 6 anni fa
parent
commit
c63e874879
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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();
         }
     }
 }