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 vertex reordering when reading file #67

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

RaduAlexandru
Copy link

Some packages depend on reading the vertices from the .obj file in the same order as they were written.
Currently the tobj crate reorders the vertices as noted also by Issue #61
In order to not break existing behavior this PR just adds the field mesh.faces_original_index which can be used to reindex the vertices and faces to the order they have defined in the file.

@Twinklebear
Copy link
Owner

Could we make populating the mesh.faces_original_index a LoadOption? That way folks who don't care about the order don't need to keep the extra index buffer

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