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

fix(functions): Remove side effects of no-op meshopt() and quantize() calls #1438

Merged
merged 2 commits into from
Jun 22, 2024

Conversation

donmccurdy
Copy link
Owner

@donmccurdy donmccurdy commented Jun 22, 2024

In some cases meshopt() or quantize() may be called, but their extensions are not necessary. This may occur either because the model has no accessors, or because no primitives qualified for quantization. After this PR, extensions are not added to the document in these cases — it doesn't make sense to list KHR_mesh_quantization if there are no meshes, for example.

@donmccurdy
Copy link
Owner Author

donmccurdy commented Jun 22, 2024

@donmccurdy donmccurdy added bug Something isn't working package:functions labels Jun 22, 2024
@donmccurdy donmccurdy added this to the v4.0 milestone Jun 22, 2024
@donmccurdy donmccurdy merged commit f7f9228 into main Jun 22, 2024
7 checks passed
@donmccurdy donmccurdy deleted the fix/noop-quantize-and-meshopt branch June 22, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package:functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant