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

Portals - fix autolink portals to detect internal #50977

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

lawnjelly
Copy link
Member

Although explicit portals did a check to detect internal portals, this check was missing from autolinked portals. This meant they were incorrectly clipping the room bounds of the enclosing outer room.

This PR adds a check for internal rooms during the autolinking and sets the internal flag where needed.

Notes

  • This is improving the behaviour of internal rooms, previously these wouldn't work properly with autolinked portals and relied on explicitly linked portals.

Although explicit portals did a check to detect internal portals, this check was missing from autolinked portals. This meant they were incorrectly clipping the room bounds of the enclosing outer room.

This PR adds a check for internal rooms during the autolinking and sets the internal flag where needed.
@lawnjelly lawnjelly requested a review from a team as a code owner July 28, 2021 15:18
@akien-mga akien-mga added this to the 3.4 milestone Jul 28, 2021
@akien-mga akien-mga merged commit 5d4352f into godotengine:3.x Jul 28, 2021
@akien-mga
Copy link
Member

Thanks!

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