Skip to content

Conversation

@garyo
Copy link
Contributor

@garyo garyo commented Mar 15, 2019

In some cases you can end up with a null set of primitive indices. This comes out in the glTF file as the string "null". This PR removes those null index sets.


}

if (primitive.indices === null)
Copy link
Owner

Choose a reason for hiding this comment

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

Minor:

if ( primitive.indices === null ) delete primitive.indices;

@mrdoob mrdoob added this to the r103 milestone Mar 15, 2019
@mrdoob mrdoob merged commit a46700a into mrdoob:dev Mar 18, 2019
@mrdoob
Copy link
Owner

mrdoob commented Mar 18, 2019

Thanks!

@garyo garyo deleted the fix/gltf-export-avoid-null branch April 19, 2019 17:35
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