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

Compute selection box area using the bounding box of the blueprints instead #12650

Merged
merged 3 commits into from
May 2, 2021

Conversation

frenzibyte
Copy link
Member

Resolves issues where the blueprints may have a rotated quad, causing the selection box to have negative size area, and that can be the case with #12626:

CleanShot.2021-05-02.at.02.32.38.mp4

With this PR:

CleanShot.2021-05-02.at.02.27.24.mp4

I've also rewritten the computation logic to use RectangleF's helper method Union and Inflate instead, feels nicer that way.

@peppy peppy merged commit a8db634 into ppy:master May 2, 2021
@frenzibyte frenzibyte deleted the selection-box-use-aabb branch May 2, 2021 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants