Skip to content

Stop double reseting camera on switching images or after loading from state file #739

Merged
floryst merged 1 commit intoKitware:mainfrom
PaulHax:fix-camera-reset
May 16, 2025
Merged

Stop double reseting camera on switching images or after loading from state file #739
floryst merged 1 commit intoKitware:mainfrom
PaulHax:fix-camera-reset

Conversation

@PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented May 14, 2025

  • remember the poor forgotten 3D view!

@netlify
Copy link

netlify bot commented May 14, 2025

Deploy Preview for volview-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 7aa0777
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/68261094d07ed10008e87513
😎 Deploy Preview https://deploy-preview-739--volview-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@PaulHax PaulHax changed the title fix(camera): only automatically reset camera once Stop double reseting camera on switching images or after loading from state file May 14, 2025
@PaulHax PaulHax force-pushed the fix-camera-reset branch from 4c97902 to bfefd96 Compare May 15, 2025 14:38
@PaulHax PaulHax requested a review from floryst May 15, 2025 14:38
export const useViewCameraStore = defineStore('viewCamera', () => {
const imageStore = useImageStore();
const configs = reactive<DoubleKeyRecord<CameraConfig>>({});
const initializedCameras = ref(new Set<string>());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor memory leak; I don't see where entries get removed from initializedCameras.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@PaulHax PaulHax force-pushed the fix-camera-reset branch from bfefd96 to 7aa0777 Compare May 15, 2025 16:04
@floryst floryst added this pull request to the merge queue May 16, 2025
Merged via the queue into Kitware:main with commit 086b055 May 16, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants