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(primitives): fix polygon gizmo rendering bug #11699

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

RobWalt
Copy link
Contributor

@RobWalt RobWalt commented Feb 4, 2024

This is just a minor fix extracted from #11697

A logic error. We tried to close the polygon shape, if the user specifies an
unclosed polygon. The closing linestring previously didn't close the polygon
though, but instead added a zero length line at the last coordinate.

A logic error. The last linestring previously didn't close the polygon
but added a zero length line at the last coordinate.

Authored-by: RobWalt <robwalter96@gmail.com>
@Jondolf Jondolf added C-Bug An unexpected or incorrect behavior A-Gizmos Visual editor and debug gizmos labels Feb 4, 2024
@Jondolf
Copy link
Contributor

Jondolf commented Feb 4, 2024

CI error seems unrelated and exists in other PRs too

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Feb 4, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Feb 5, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 5, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Feb 5, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 5, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Feb 5, 2024
@alice-i-cecile
Copy link
Member

CI please :( Seems to all be failure to fetch networking flakiness.

Merged via the queue into bevyengine:main with commit 381f3d3 Feb 5, 2024
23 checks passed
@RobWalt RobWalt deleted the fix/polygon2d-gizmo branch February 5, 2024 17:41
lynn-lumen pushed a commit to lynn-lumen/bevy that referenced this pull request Feb 5, 2024
This is just a minor fix extracted from bevyengine#11697

A logic error. We tried to close the polygon shape, if the user
specifies an
unclosed polygon. The closing linestring previously didn't close the
polygon
though, but instead added a zero length line at the last coordinate.

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
tjamaan pushed a commit to tjamaan/bevy that referenced this pull request Feb 6, 2024
This is just a minor fix extracted from bevyengine#11697

A logic error. We tried to close the polygon shape, if the user
specifies an
unclosed polygon. The closing linestring previously didn't close the
polygon
though, but instead added a zero length line at the last coordinate.

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
github-merge-queue bot pushed a commit that referenced this pull request Feb 14, 2024
I just implemented this to record a video for the new blog post, but I
figured it would also make a good dedicated example. This also allows us
to remove a lot of code from the 2d/3d gizmo examples since it
supersedes this portion of code.

Depends on: #11699
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Gizmos Visual editor and debug gizmos C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants