Skip to content

Commit fee1bae

Browse files
authored
Fix for GS in XR (#7529)
1 parent 178cd31 commit fee1bae

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)