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

AssimpImporter: Should normalize filepaths for external image paths #101

Closed
Squareys opened this issue Jul 9, 2021 · 1 comment
Closed

Comments

@Squareys
Copy link
Contributor

Squareys commented Jul 9, 2021

I just encountered a FBX which had a filepath with \ along the lines of:

[error] Trade::AbstractImporter::openFile(): cannot open file /a/unix/path/Assets/Something/Textures\[...]_Diffuse.png

It turns out that Assimp does not normalize filepaths before opening. A workaround is to set a file callback.

Might eventually get around to creating a PR.

@mosra mosra added this to the 2021.0a milestone Jul 10, 2021
@mosra mosra added this to TODO in Asset management via automation Jul 10, 2021
@mosra
Copy link
Owner

mosra commented Jul 10, 2021

Fixed with #102. Yay, Assimp!

@mosra mosra closed this as completed Jul 10, 2021
Asset management automation moved this from TODO to Done Jul 10, 2021
@pezcode pezcode mentioned this issue Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants