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(transform): Updates to support glTF Transform v4 #267

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

donmccurdy
Copy link
Member

@donmccurdy donmccurdy commented Jul 16, 2024

In glTF Transform v4, the weld() function no longer takes a tolerance option. It is now always lossless, and runs (much) faster than in v3. I think it would make sense now to enable weld() by default, rather than putting it behind the simplify option.

Aside: I'm having trouble with yarn build (seems unrelated?), and so haven't been able to test this locally. The changes look safe enough, but may need someone else to do a quick test, or I'll look further into the build issue when I have a chance.

Also, it looks like we may need to put @gltf-transform/* in package.json#resolutions. On the master branch, running the CLI locally fails, because multiple versions (4.0.4 + 4.0.8) of @gltf-transform/core are loaded, and things like instanceof checks will fail. Rather than using resolutions, allowing a semver range for each dependency should also be fine. I don't think this part is unique to glTF Transform v4.

@donmccurdy donmccurdy requested a review from drcmda July 16, 2024 22:47
@donmccurdy donmccurdy changed the title feat(transform): Enable weld by default, remove unsupported tolerance fix(transform): Updates to support glTF Transform v4, add to resolutions Jul 17, 2024
@donmccurdy donmccurdy changed the title fix(transform): Updates to support glTF Transform v4, add to resolutions fix(transform): Updates to support glTF Transform v4 Jul 17, 2024
@donmccurdy donmccurdy merged commit 6a7d930 into pmndrs:master Sep 3, 2024
2 checks passed
@donmccurdy donmccurdy deleted the feat/weld-default branch September 3, 2024 13:42
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.

1 participant