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: Accessor's component type is forced #59

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

Razakhel
Copy link
Contributor

Context

Problem occurred on a GLB file that had an indices accessor of an unsigned short component type, but with their max & min bounds written as double values. This is valid by the glTF spec, as per https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_accessor_max and https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_accessor_min:

Array elements MUST be treated as having the same data type as accessor’s componentType.

@spnda spnda merged commit 7352629 into spnda:main Apr 11, 2024
14 checks passed
@Razakhel Razakhel deleted the fix-accessor-mixed-types branch April 11, 2024 18:30
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.

None yet

2 participants