Skip to content

Commit

Permalink
Update current FOV prop when changing selected camera
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Jul 27, 2023
1 parent 7c35706 commit 70f009c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion photon-client/src/components/cameras/CameraSettingsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ const saveCameraSettings = () => {
label="Camera"
:items="useCameraSettingsStore().cameraNames"
:select-cols="8"
@input="args => useCameraSettingsStore().setCurrentCameraIndex(args)"
@input="args => {
currentFov = useCameraSettingsStore().cameras[args].fov.value;
useCameraSettingsStore().setCurrentCameraIndex(args);
}"
/>
<cv-number-input
v-model="currentFov"
Expand Down

0 comments on commit 70f009c

Please sign in to comment.