Skip to content

Commit 722cc02

Browse files
authored
WebXRManager: Remove redundant updateMatrixWorld calls (#26201)
Co-authored-by: Noeri Huisman <[email protected]>
1 parent 0c67b52 commit 722cc02

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/renderers/webxr/WebXRManager.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -571,14 +571,6 @@ class WebXRManager extends EventDispatcher {
571571
camera.matrix.decompose( camera.position, camera.quaternion, camera.scale );
572572
camera.updateMatrixWorld( true );
573573

574-
const children = camera.children;
575-
576-
for ( let i = 0, l = children.length; i < l; i ++ ) {
577-
578-
children[ i ].updateMatrixWorld( true );
579-
580-
}
581-
582574
camera.projectionMatrix.copy( cameraXR.projectionMatrix );
583575
camera.projectionMatrixInverse.copy( cameraXR.projectionMatrixInverse );
584576

0 commit comments

Comments
 (0)