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 index errors #84

Merged
merged 3 commits into from
Nov 1, 2018
Merged

Fix index errors #84

merged 3 commits into from
Nov 1, 2018

Conversation

mlamarre
Copy link
Contributor

@mlamarre mlamarre commented Oct 22, 2018

Fixed errors on a specific file (can't share sorry) probably not following the standard but Meshlab can open the file that caused these two errors.

First IndexError, may be caused by a blank line after the last vt
Second IndexError, may be caused by a zero (0) normal index in many faces even though there's a large number of vn lines in that file.

@greenmoss
Copy link
Collaborator

Hi @mlamarre thanks for the PR! Looks good to me.

Can you add a test case to trigger these conditions?

@mlamarre
Copy link
Contributor Author

Yes, I'll try to find time to do this in the next couple of weeks.

@mlamarre
Copy link
Contributor Author

I added two minimal repro obj files with a text editor and two test cases.

@greenmoss greenmoss merged commit e7254f2 into pywavefront:master Nov 1, 2018
@greenmoss
Copy link
Collaborator

Awesome, thank you!

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