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 incorrect label placement for 3D arrows with origins #6779

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jul 4, 2024

What

Title says 3D because that's what this fixes compard to 0.16. However, on main both was broken.

What happend?

On 0.16.1

Recently I did a refactor of label positioning code and ended up propagating the broken code to 2D arrows. Which then in turn was noticed by @teh-cmc as it broke a recently added release checklist item.

image

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

To run all checks from main, comment on the PR with @rerun-bot full-check.

@Wumpf Wumpf added 🪳 bug Something isn't working include in changelog labels Jul 4, 2024
@Wumpf Wumpf merged commit a25ac64 into main Jul 5, 2024
35 of 37 checks passed
@Wumpf Wumpf deleted the andreas/improve-single-label-placement branch July 5, 2024 08:03
This was referenced Jul 5, 2024
emilk pushed a commit that referenced this pull request Jul 5, 2024
### What

Title says 3D because that's what this fixes compard to 0.16. However,
on `main` both was broken.

What happend?

On 0.16.1
* arrows2d: note no incorrect paranthesis
https://github.com/rerun-io/rerun/blob/release-0.16.1/crates/re_space_view_spatial/src/visualizers/arrows2d.rs#L66
* arrows3d: note incorrect paranthesis
https://github.com/rerun-io/rerun/blob/release-0.16.1/crates/re_space_view_spatial/src/visualizers/arrows3d.rs#L66

Recently I did a refactor of label positioning code and ended up
propagating the broken code to 2D arrows. Which then in turn was noticed
by @teh-cmc as it broke a recently added release checklist item.

<img width="1021" alt="image"
src="https://github.com/rerun-io/rerun/assets/1220815/7704df11-87eb-469c-acfa-890889942630">


### Checklist
* [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 the web demo (if applicable):
* Using examples from latest `main` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6779?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6779?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!

- [PR Build Summary](https://build.rerun.io/pr/6779)
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)

To run all checks from `main`, comment on the PR with `@rerun-bot
full-check`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants