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 texture URL resolution in scene zip bundles #2245

Merged
merged 1 commit into from
Mar 13, 2021

Conversation

matteblair
Copy link
Member

Resolves #2233

When we resolve texture URLs during the scene import process, we need to handle the case where the URL of the scene refers to a zip file. Relative URLs in a scene bundle refer to entries within the zip archive, so they need to be resolved as "zip URLs" instead of being resolved relative to the scene bundle itself. In the linked issue, the image URLs were resolving to:

file:///path/to/walkabout-style.zip/images/walkabout-green1.jpg

Instead they should resolve to:

zip://file%3A%2F%2F%2Fpath%2Fto%2Fwalkabout-style.zip/images/walkabout-green1.jpg

@tallytalwar
Copy link
Member

Looks good to me, thanks Matt.

@tallytalwar tallytalwar merged commit 808e511 into main Mar 13, 2021
@matteblair matteblair deleted the fix-zip-texture-urls branch March 13, 2021 06:23
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.

iOS scene files as bundles does not work properly
2 participants