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

Box3: Better support for animated objects in expandByObject() in precise mode. #26919

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Oct 8, 2023

Fixed #18245.

Description

This PR makes sure the precise mode of Box3.expandByObject() supports the animated state of morphed and skinned meshes which leads to more correct bounding boxes (especially when using setFromObject()).

With this change, the editor only requires a small addition in its animation loop so the selection box reflects the current animation state.

@Mugen87 Mugen87 added this to the r158 milestone Oct 8, 2023
@github-actions
Copy link

github-actions bot commented Oct 8, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
649.1 kB (160.9 kB) 649.1 kB (160.9 kB) -16 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
442.5 kB (107.1 kB) 442.4 kB (107.1 kB) -16 B
@Mugen87 Mugen87 merged commit 8735897 into mrdoob:dev Oct 9, 2023
19 checks passed
@rndexe rndexe mentioned this pull request Jul 31, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant