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

Filter out nil meshDescriptors #28

Closed
wants to merge 1 commit into from

Conversation

FreakTheMighty
Copy link

Not all primitive types are currently supported, this filters out those that are not handled.

Not all primitive types are currently supported, this filters out those that are not handled.
@FreakTheMighty FreakTheMighty mentioned this pull request Feb 8, 2023
@warrenm
Copy link
Owner

warrenm commented Feb 8, 2023

This looks like a case for compactMap. Having said that, because we construct a parallel array of materials for the primitives, we need to filter both lists, so I switched to using tuples plus compactMap. This crash should be mitigated by 53afeab.

Thanks for reporting this. I'll put together a test suite to try to catch other crashes and prevent regressions.

Closing as superseded by 53afeab.

@warrenm warrenm closed this Feb 8, 2023
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