Skip to content

Commit 3f177c0

Browse files
committed
fix
1 parent 92dabdc commit 3f177c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scene/gsplat/gsplat-instance.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class GSplatInstance {
179179
viewport[1] = height;
180180

181181
// adjust viewport for stereoscopic VR sessions
182-
const xr = camera?.xr;
182+
const xr = camera?.camera?.xr;
183183
if (xr?.active && xr.views.list.length === 2) {
184184
viewport[0] *= 0.5;
185185
}

0 commit comments

Comments
 (0)