Fix perspective camera toggle in debug pane to update immediately (#2969)

This commit is contained in:
Jonathan Tran
2024-07-10 17:50:25 -04:00
committed by GitHub
parent 263a4f324d
commit 6c2fa95a32
2 changed files with 3 additions and 3 deletions

View File

@ -717,7 +717,7 @@ export const CamDebugSettings = () => {
if (camSettings.type === 'perspective') {
sceneInfra.camControls.useOrthographicCamera()
} else {
sceneInfra.camControls.usePerspectiveCamera()
sceneInfra.camControls.usePerspectiveCamera(true)
}
}}
/>