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

Add support for importing reflection probes. #299

Merged

Conversation

Exairnous
Copy link
Contributor

Reflection Probes import as empties in the normal glTF import, but the Reflection Probe component is only valid on Light Probes. This PR changes it so that a Light Probe object with the correct location, rotation, and scale is added when importing the component and then parented to the empty. The component is then imported onto the new Light Probe object instead of the empty. No further parenting is attempted, so this should pose no danger to complex hierarchical relationships.

An issue with importing textures that I discovered when testing this PR has also been fixed.

Reflection Probes import as empties, so a Light Probe object is added to host the component and then parented to the empty.
…importing textures so that any references to the textures return the correct image and don't fail.

The previous behavior could cause index out of bounds errors when trying to access textures and their images.
@Exairnous Exairnous merged commit 802b5b0 into Hubs-Foundation:master Jul 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant