Skip to content

Commit dc73ae3

Browse files
committed
Merge branch 'master' into dev
2 parents 5d50a5b + 65b805b commit dc73ae3

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,15 @@
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,

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

types/three/src/renderers/webxr/WebXRManager.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

types/three/test/renderers/webxr/webxr-vr-cube.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)