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 size issue for ARVR managed viewport #56072

Merged
merged 1 commit into from
Dec 19, 2021

Conversation

BastiaanOlij
Copy link
Contributor

@BastiaanOlij BastiaanOlij commented Dec 19, 2021

This fix applies to 3.x only.

This fixes an issue around an ARVR Viewport not rendering if its size is 0, 0 even though the size is managed by the ARVRInterface.
It also fixes an issue around Godot getting stuck when attempting to render a Viewport not properly initialized because there is no ARVRInterface that has been initialized (a likely scenario when running the editor)

It simply moves the size check to slightly earlier in the rendering process, and set the size to 0, 0 if no ARVRInterface is initialized.

fixes #56069

@akien-mga akien-mga merged commit 4f58ec3 into godotengine:3.x Dec 19, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.2.

@BastiaanOlij BastiaanOlij deleted the fix_viewport_size_arvr branch December 21, 2021 11:00
@arran-nz
Copy link

Thanks @BastiaanOlij !

This was causing me some issues when migrating my VR project to 3.4. 🥳

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.

4 participants