Skip to content

Commit 363a40e

Browse files
committed
Merge branch 'main' of https://github.com/pmndrs/xr
2 parents c18b83c + c9c85f4 commit 363a40e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/xr/src/guard/facing-camera.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ export function IfFacingCamera({ children, direction, angle = Math.PI / 2 }: Fac
6161
const ref = useRef<Group>(null)
6262
const [show, setShow] = useState(false)
6363
useIsFacingCamera(ref, setShow, direction, angle)
64-
return show ? <>{children}</> : null
64+
return <group ref={ref}>{show ? children : null}</group>
6565
}

0 commit comments

Comments
 (0)