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

ACCESSOR_NON_UNIT error in validator #372

Closed
AlbertoElias opened this issue Jun 10, 2018 · 5 comments
Closed

ACCESSOR_NON_UNIT error in validator #372

AlbertoElias opened this issue Jun 10, 2018 · 5 comments
Labels
bug Something isn't working exporter This involves or affects the export process

Comments

@AlbertoElias
Copy link

I'm exporting a blender scene using the latest add on in master and then opening it in https://gltf-viewer.donmccurdy.com/ and I get the error

Cannot read property 'joints' of undefined

The model has an armature and some animations. I'm attaching the gltf and the blender file. Thanks!

broken_model.zip

@Minek124
Copy link

I had same error when multiple meshes are attached to one armature and the solution I found is to join all child meshes.

@donmccurdy
Copy link
Contributor

Transferring to the new repository, https://github.com/KhronosGroup/glTF-Blender-IO.

This model now exports and loads without failing, but the skinning data appears deformed.

@donmccurdy donmccurdy transferred this issue from KhronosGroup/glTF-Blender-Exporter Mar 21, 2019
@donmccurdy donmccurdy added bug Something isn't working exporter This involves or affects the export process labels Mar 21, 2019
@julienduroure julienduroure changed the title Cannot read property 'joints' of undefined ACCESSOR_NON_UNIT error in validator Sep 17, 2019
@julienduroure
Copy link
Collaborator

Skin issue seems to be fixed, but now have gltf error :

ACCESSOR_NON_UNIT

@emackey
Copy link
Member

emackey commented Sep 17, 2019

Skin issue seems to be fixed, but now have gltf error :

ACCESSOR_NON_UNIT

I know that one. The model contains degenerate faces, and the exporter doesn't weed them out prior to export, resulting in zero-length normal vectors, which are invalid in glTF.

Quick fix is go into Edit Mode, menu, "Mesh" -> "Clean up" -> "Degenerate Dissolve".

@julienduroure
Copy link
Collaborator

Well, this is a duplicate of #1138, let's continue the discussion on the other ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working exporter This involves or affects the export process
Projects
None yet
Development

No branches or pull requests

5 participants