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

Print error message when failing to load mtl file #18

Merged
merged 1 commit into from
Jan 5, 2019

Conversation

AgentOak
Copy link
Contributor

@AgentOak AgentOak commented Jan 4, 2019

This is not an ideal solution, since we don't want to do I/O at all.
But until we have a callback to load mtl files as described in #4 , this way the user can at least get the real error message to diagnose the problem. (Which in most cases is an incorrect relative path to the material file, which would be solved by the solution proposed in #4 as well.)

This unfortunately introduces an additional dependency on <errno.h>, so this change might not be favorable.

This is not an ideal solution, since we don't want to do I/O at all.
But until we have a callback to load mtl files, this way the user
can at least get the real error message to diagnose the problem.
@syoyo syoyo merged commit c99778d into syoyo:master Jan 5, 2019
@syoyo
Copy link
Owner

syoyo commented Jan 5, 2019

Thanks!

This is not an ideal solution, since we don't want to do I/O at all.

Yes, ideal solution will be providing callback function to report error. Additional PR is welcome!

@AgentOak AgentOak deleted the mtlerror branch January 13, 2019 00:34
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