-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unable to set camera spinning until camera has moved #2990
Conversation
|
||
pub fn set_spin(&mut self, spin: bool) { | ||
self.spin = spin; | ||
self.did_interact_with_eye = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noting: as soon as we click spin, we'll lose the "zoom out to fit" behavior. I think this is a good compromise for now and a strict improvement as implemented, but it would be pretty neat if we could manage to get a behavior where it spins but also continues to zoom out as new data arrives.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm yeah I suppose the "zoom to thing" method could also be made working with spin on. But let's leave this for another time!
Fixes #2892 Thought this was related to blueprint system overwriting, but it was something else entirely actually: The "interpolate to"-method would set spin to false and we would interpolate to whatever the latest default position of the camera is until it is moved first. * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2990) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/2990) - [Docs preview](https://rerun.io/preview/pr%3Aandreas%2Ffix-non-sticky-spinbox/docs) - [Examples preview](https://rerun.io/preview/pr%3Aandreas%2Ffix-non-sticky-spinbox/examples)
Fixes #2892 Thought this was related to blueprint system overwriting, but it was something else entirely actually: The "interpolate to"-method would set spin to false and we would interpolate to whatever the latest default position of the camera is until it is moved first. * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2990) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/2990) - [Docs preview](https://rerun.io/preview/pr%3Aandreas%2Ffix-non-sticky-spinbox/docs) - [Examples preview](https://rerun.io/preview/pr%3Aandreas%2Ffix-non-sticky-spinbox/examples)
Fixes #2892
Thought this was related to blueprint system overwriting, but it was something else entirely actually: The "interpolate to"-method would set spin to false and we would interpolate to whatever the latest default position of the camera is until it is moved first.
Checklist