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 gltf accessor's bufferView could be undefined #2013

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

gz65555
Copy link
Collaborator

@gz65555 gz65555 commented Feb 27, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

follow the instruction of standard of gltf: https://github.com/KhronosGroup/glTF/blob/main/specification/2.0/schema/accessor.schema.json#L12C13-L12C212

The bufferView field of accessor could be undefined. We should use 0 instead of undefined.

Copy link
Member

@zhuxudong zhuxudong left a comment

Choose a reason for hiding this comment

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

+1

@GuoLei1990 GuoLei1990 changed the title fix: gltf accessor's bufferView could be undefined Fix gltf accessor's bufferView could be undefined Feb 27, 2024
@GuoLei1990 GuoLei1990 merged commit 57f6c8a into galacean:main Feb 27, 2024
6 checks passed
@GuoLei1990 GuoLei1990 added the bug Something isn't working label Feb 27, 2024
GuoLei1990 added a commit that referenced this pull request Feb 29, 2024
* main:
  Fix gltf accessor's bufferView could be undefined (#2013)
  Fix `IPhysicsScene.removeColliderShape` not cleaned up `eventMap` (#2008)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working glTF
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants