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

Allow referencing additional chunks. #1065

Merged
merged 1 commit into from
Jun 23, 2021
Merged

Conversation

Santarh
Copy link
Contributor

@Santarh Santarh commented Jun 22, 2021

Because glTF specification says

Client implementations must ignore chunks with unknown types to enable glTF extensions to reference additional chunks with new types following the first two chunks.

https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#chunks

@Santarh Santarh requested a review from ousttrue June 22, 2021 12:26
@@ -86,7 +86,7 @@ public void ParseGlb(Byte[] bytes)
{
var chunks = glbImporter.ParseGlbChunks(bytes);

if (chunks.Count != 2)
if (chunks.Count < 2)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allow

@Santarh Santarh changed the title Allow external chunks. Allow referencing additional chunks. Jun 22, 2021
@ousttrue ousttrue merged commit 009e1aa into vrm-c:master Jun 23, 2021
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