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

WebXRManager: Remove redundant updateMatrixWorld calls #26201

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

mrxz
Copy link
Contributor

@mrxz mrxz commented Jun 6, 2023

Description

The matrix world of the camera is updated with a call to .updateMatrixWorld( true ). This method already recurses into its children, so the subsequent code that did the same for each child is redundant. This PR simply removes the redundant code.

This contribution is funded by Fern Solutions

@github-actions
Copy link

github-actions bot commented Jun 6, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
644.1 kB (159.5 kB) 644 kB (159.5 kB) -77 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
434.1 kB (105.1 kB) 434.1 kB (105.1 kB) -77 B

@Mugen87 Mugen87 added this to the r154 milestone Jun 6, 2023
@mrdoob mrdoob modified the milestones: r154, r155 Jun 29, 2023
@mrdoob mrdoob modified the milestones: r155, r156 Jul 27, 2023
@Mugen87 Mugen87 merged commit 722cc02 into mrdoob:dev Aug 28, 2023
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.

3 participants