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

SkinnedMesh: Introduce constants for bindMode. #26985

Merged
merged 2 commits into from Oct 17, 2023
Merged

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Oct 16, 2023

Related issue:-

Description

Compared to other classes, SkinnedMesh.bindMode uses plain strings instead of constants which is inconsistent. The PR adds THREE.AttachedBindMode and THREE.DetachedBindMode and also clarifies the documentation what both bind modes actually do.

The PR does not break code since the values of the constants are equal to the existing strings.

@github-actions
Copy link

github-actions bot commented Oct 16, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
652.2 kB (161.6 kB) 652.2 kB (161.6 kB) +50 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
444.9 kB (107.6 kB) 444.9 kB (107.6 kB) +0 B

@Mugen87 Mugen87 added this to the r158 milestone Oct 16, 2023
@Mugen87 Mugen87 merged commit 4bcd279 into mrdoob:dev Oct 17, 2023
20 checks passed
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

1 participant