Skip to content

Fix issue with vision bounds not including the vision origin - #4645

Merged
cwisniew merged 1 commit into
RPTools:developfrom
kwvanderlinde:bugfix/4637-vision-sweep-bounds-not-around-origin
Jan 21, 2024
Merged

Fix issue with vision bounds not including the vision origin#4645
cwisniew merged 1 commit into
RPTools:developfrom
kwvanderlinde:bugfix/4637-vision-sweep-bounds-not-around-origin

Conversation

@kwvanderlinde

@kwvanderlinde kwvanderlinde commented Jan 17, 2024

Copy link
Copy Markdown
Collaborator

Identify the Bug or Feature request

Fixes #4637

Description of the Change

The vision sweep is only well-behaved if it has bounds surrounding the origin. It is not enough that we use the vision bounds since certain cases may not guarantee that the vision shape include the vision origin. So we now make sure to explicitly expand the sweep bounds to include the origin.

Also some separation of concerns: EndpointSet has no reason to know anything about vision, not even just to provide initial bounds. So now it only tracks the bounding box of its contents and nothing else.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

  • Fixed a bug where non-STG tokens with small rid vision or lights could generate errors.

This change is Reviewable

The vision sweep is only well-behaved if it has bounds surrounding the origin. It is not enough that we use the vision
bounds since certain cases may not guarantee that the vision shape include the vision origin. So we now make sure to
explicitly expands the sweep bounds to include the origin.

Also some separation of concerns: `EndpointSet` has no reason to know anything about vision, not even just to provide
initial bounds. So now it only tracks the bounding box of its contents and nothing else.
@cwisniew
cwisniew added this pull request to the merge queue Jan 21, 2024
Merged via the queue into RPTools:develop with commit dbb53bf Jan 21, 2024
@cwisniew cwisniew added the bug label Jan 21, 2024
@kwvanderlinde
kwvanderlinde deleted the bugfix/4637-vision-sweep-bounds-not-around-origin branch November 26, 2024 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Merged

Development

Successfully merging this pull request may close these issues.

[Bug]: Null Pointer Exception errors with non-snapped to grid tokens using grid sights

2 participants