Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

silverweed
Copy link
Contributor

@silverweed silverweed commented Jun 1, 2018

Currently, if mtl_basedir doesn't end with a separator character (/ on *nix or \\ on Windows) the loader will neither raise any warning nor correctly load the materials.
With this commit, LoadObj will automatically insert a separator at the end of the basedir if needed.

@syoyo
Copy link
Collaborator

syoyo commented Jun 1, 2018

Super awesome!

I'll check appveyor failure and merge as soon as possible.

@silverweed
Copy link
Contributor Author

silverweed commented Jun 1, 2018

I didn't check this yet on Windows; the only issue I can think of is, if you pass a /-separated path on Windows (which is sometimes legal I think?) it will end up being mixed \\ and /
Anyway I'm going to check this within a few hours, so if you prefer waiting for that it shouldn't take long :D

@silverweed
Copy link
Contributor Author

Ok, tested on Windows and apparently it works for whichever combination of separators.

@syoyo syoyo merged commit d541711 into tinyobjloader:master Jun 1, 2018
@syoyo
Copy link
Collaborator

syoyo commented Jun 1, 2018

Merged!

Build failure was another reason. I have fixed it by another commit.

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.

2 participants