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

DRACOLoader: Support requests for multiple files in parallel #332

Merged
merged 1 commit into from
Jan 17, 2018
Merged

DRACOLoader: Support requests for multiple files in parallel #332

merged 1 commit into from
Jan 17, 2018

Conversation

donmccurdy
Copy link
Contributor

Calling decodeDracoFile currently caches the attributeUniqueIdMap on the instance, meaning:

  • call decodeDracoFile with attribute map
  • async request (1) begins
  • call decodeDracoFile with a new attribute map, overriding this.attributeUniqueIdMap
  • async request (2) begins
  • async request (1) completes, begins decoding using the wrong attribute map

In this situation there will be issues in glTF assets containing multiple meshes. See donmccurdy/three.js#6 for full context.

@FrankGalligan
Copy link
Collaborator

Looks good. Thanks

@FrankGalligan FrankGalligan merged commit f3b5989 into google:master Jan 17, 2018
danielgronlund pushed a commit to danielgronlund/draco that referenced this pull request Aug 22, 2024
…el-decoding

DRACOLoader: Support requests for multiple files in parallel
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