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

GLTFLoader: remove redundant toTrianglesDrawMode function definition #25316

Merged
merged 1 commit into from
Jan 22, 2023

Conversation

gkjohnson
Copy link
Collaborator

Related issue: #18041

Description

Use the BufferGeometryUtils function definition instead of embedding a separate copy in GLTFLoader. Untested but looking at the function bodies it looks identical aside from some extra checks.

cc @Mugen87 @donmccurdy

@donmccurdy
Copy link
Collaborator

I think the original reason for duplicating this method had to do with examples/js and not wanting to require users to import THREE.BufferGeometryUtils manually. With examples/js gone, it seems fine to import rather than duplicating the function. Thanks!

@mrdoob mrdoob added this to the r149 milestone Jan 22, 2023
@mrdoob mrdoob merged commit 773bb2e into mrdoob:dev Jan 22, 2023
@gkjohnson gkjohnson deleted the remove-redundant-triangles-mode branch January 22, 2023 05:59
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.

None yet

3 participants