Skip to content

fix: Apply FOV from previously-saved JSON files#389

Merged
nmwsharp merged 2 commits intonmwsharp:masterfrom
Thibaulltt:fix-fov-not-applied
May 3, 2026
Merged

fix: Apply FOV from previously-saved JSON files#389
nmwsharp merged 2 commits intonmwsharp:masterfrom
Thibaulltt:fix-fov-not-applied

Conversation

@Thibaulltt
Copy link
Copy Markdown
Contributor

It really bothered me that my FOV (and thus, the zoom) was not applied when loading a previously saved view JSON file. Found it was a typo in the deserialization :)

It should work for both the C++ and python functions, as long as polyscope-py gets a bump in its dependencies.

@Thibaulltt
Copy link
Copy Markdown
Contributor Author

I also noticed the wrong FOV was applied if you try to fly to the saved JSON view parameters, instead of applying them directly. Fixed in a4535be.

@nmwsharp
Copy link
Copy Markdown
Owner

Thanks for catching this! Is it good to go on your end now?

@Thibaulltt
Copy link
Copy Markdown
Contributor Author

Yes! I would love to include a bit more info in the saved JSON, but that'll be for another week if I still need it then.

@nmwsharp nmwsharp merged commit 59da72d into nmwsharp:master May 3, 2026
10 checks passed
@nmwsharp
Copy link
Copy Markdown
Owner

nmwsharp commented May 3, 2026

merged! thanks again

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