Skip to content
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

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Aug 15, 2023

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

@Wumpf Wumpf added this to the 0.8.1 milestone Aug 15, 2023
@Wumpf Wumpf added 🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself labels Aug 15, 2023

pub fn set_spin(&mut self, spin: bool) {
self.spin = spin;
self.did_interact_with_eye = true;
Copy link
Member

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.

Copy link
Member Author

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!

@Wumpf Wumpf merged commit 1339fdd into main Aug 15, 2023
@Wumpf Wumpf deleted the andreas/fix-non-sticky-spinbox branch August 15, 2023 18:05
emilk pushed a commit that referenced this pull request Aug 17, 2023
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)
@emilk emilk mentioned this pull request Aug 17, 2023
3 tasks
emilk pushed a commit that referenced this pull request Aug 17, 2023
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[0.8 regression] Spin checkbox doesn't work any more
2 participants