File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 656656 "contributions" : [
657657 " code"
658658 ]
659+ },
660+ {
661+ "login" : " saitonakamura" ,
662+ "name" : " Michael サイトー 中村 Bashurov" ,
663+ "avatar_url" : " https://avatars.githubusercontent.com/u/1552189?v=4" ,
664+ "profile" : " https://github.com/saitonakamura" ,
665+ "contributions" : [
666+ " code"
667+ ]
659668 }
660669 ],
661670 "skipCi" : true ,
Original file line number Diff line number Diff line change @@ -117,6 +117,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
117117 <td align="center" valign="top" width="14.28%"><a href="https://github.com/willstott101"><img src="https://avatars.githubusercontent.com/u/335152?v=4?s=100" width="100px;" alt="Will Stott"/><br /><sub><b>Will Stott</b></sub></a><br /><a href="https://github.com/three-types/three-ts-types/commits?author=willstott101" title="Code">💻</a></td>
118118 <td align="center" valign="top" width="14.28%"><a href="https://github.com/demike"><img src="https://avatars.githubusercontent.com/u/1626922?v=4?s=100" width="100px;" alt="demike"/><br /><sub><b>demike</b></sub></a><br /><a href="https://github.com/three-types/three-ts-types/commits?author=demike" title="Code">💻</a></td>
119119 </tr>
120+ <tr>
121+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/saitonakamura"><img src="https://avatars.githubusercontent.com/u/1552189?v=4?s=100" width="100px;" alt="Michael サイトー 中村 Bashurov"/><br /><sub><b>Michael サイトー 中村 Bashurov</b></sub></a><br /><a href="https://github.com/three-types/three-ts-types/commits?author=saitonakamura" title="Code">💻</a></td>
122+ </tr>
120123 </tbody >
121124</table >
122125
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class WebXRManager extends EventDispatcher {
4040 getBinding ( ) : XRWebGLBinding ;
4141 getFrame ( ) : XRFrame ;
4242 getSession ( ) : XRSession | null ;
43- setSession ( value : XRSession ) : Promise < void > ;
43+ setSession ( value : XRSession | null ) : Promise < void > ;
4444 getCamera ( ) : WebXRArrayCamera ;
4545 updateCamera ( camera : PerspectiveCamera ) : void ;
4646 setAnimationLoop ( callback : XRFrameRequestCallback | null ) : void ;
Original file line number Diff line number Diff line change @@ -23,12 +23,13 @@ async function onSessionStarted(session: XRSession): Promise<void> {
2323 currentSession = session ;
2424}
2525
26- function onSessionEnded ( ) : void {
26+ async function onSessionEnded ( ) : Promise < void > {
2727 if ( currentSession == null ) {
2828 return ;
2929 }
3030
3131 currentSession . removeEventListener ( 'end' , onSessionEnded ) ;
32+ await renderer . xr . setSession ( null ) ;
3233 vrButton . innerText = 'Enter VR' ;
3334
3435 currentSession = null ;
You can’t perform that action at this time.
0 commit comments