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

Rigged collada model crashes three #8636

Closed
AndrewRayCode opened this issue Apr 14, 2016 · 1 comment
Closed

Rigged collada model crashes three #8636

AndrewRayCode opened this issue Apr 14, 2016 · 1 comment
Labels

Comments

@AndrewRayCode
Copy link
Contributor

Description of the problem

I'm trying to import a rigged Collada mesh from Blender. I'm using the latest ColladaLoader.js file.

It crashes on this line in SkinnedMesh with the error

Uncaught TypeError: Cannot read property 'add' of undefined

The line in question:

bones[ gbone.parent ].add( bones[ b ] );

You can download my test mesh: test-export.dae.zip

That happens because it tries to look up bones[ gbone.parent ], but gbone.parent is a string, and bones is an array. So it returns undefined and crashes

Three.js version
  • ✅ Dev
  • ✅ r75
@mrdoob mrdoob added the Bug label Apr 16, 2016
@mrdoob
Copy link
Owner

mrdoob commented Apr 17, 2016

Fixed crash. Thanks!

@mrdoob mrdoob closed this as completed Apr 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants