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 secondary PVS bug #51388

Merged
merged 1 commit into from
Aug 8, 2021

Conversation

lawnjelly
Copy link
Member

@lawnjelly lawnjelly commented Aug 8, 2021

Fixes a bug whereby it read from the primary PVS in the gameplay monitor, using the size from the secondary PVS. This would read out of bounds and crash.

Removed debug code to update the gameplay monitor from the preview camera - this is no longer required.

Temporarily revert to the simple PVS generation method, because I've noticed a bug in the complex version, and the simple version is safer while I fix this.

Fixes crash in #51386. (But not the Sprite3Ds yet)

Notes

  • I noticed a recursion loop in the new complex PVS method so I've temporarily turned it back to the simple version, just to be safe. This is not entirely surprising as the new method is a bit more convoluted and has to handle more cases.

Fixes a bug whereby it read from the primary PVS in the gameplay monitor, using the size from the secondary PVS. This would read out of bounds and crash.

Removed debug code to update the gameplay monitor from the preview camera - this is no longer required.

Temporarily revert to the simple PVS generation method, because I've noticed a bug in the complex version, and the simple version is safer while I fix this.
@akien-mga akien-mga merged commit 7b718dc into godotengine:3.x Aug 8, 2021
@akien-mga
Copy link
Member

Thanks!

@lawnjelly lawnjelly deleted the portals_fix_secondary_pvs branch August 8, 2021 15:57
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.

3 participants