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

Accept absolute paths in gltf texture uris and avoid issues in 'copy' mode #132

Closed
wants to merge 1 commit into from

Conversation

izzyboris
Copy link

This is proposed to fix #131 where a gltf using an absolute image path fails to locate because of an extra directory prefix.

Note that I can't seem to run the unit tests in my environment at the moment but I've checked this works at runtime during loadModel(), running manually at the command line and in bdist_apps.

@izzyboris izzyboris marked this pull request as draft March 31, 2024 17:07
@izzyboris
Copy link
Author

Marked draft because this is still a WIP. NodePath.writeToBam() saves the texture path relative to the written bam file, which complicates matters when the loaded .gltf is in a temporary directory.

@izzyboris izzyboris closed this May 23, 2024
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.

gltf containing absolute (Windows) paths fail to import with duplicated prefixes
1 participant