浏览代码

WebXRManager: Remove redundant `updateMatrixWorld` calls (#26201)

Co-authored-by: Noeri Huisman <[email protected]>
Noeri Huisman 1 年之前
父节点
当前提交
722cc028a7
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      src/renderers/webxr/WebXRManager.js

+ 0 - 8
src/renderers/webxr/WebXRManager.js

@@ -571,14 +571,6 @@ class WebXRManager extends EventDispatcher {
 			camera.matrix.decompose( camera.position, camera.quaternion, camera.scale );
 			camera.updateMatrixWorld( true );
 
-			const children = camera.children;
-
-			for ( let i = 0, l = children.length; i < l; i ++ ) {
-
-				children[ i ].updateMatrixWorld( true );
-
-			}
-
 			camera.projectionMatrix.copy( cameraXR.projectionMatrix );
 			camera.projectionMatrixInverse.copy( cameraXR.projectionMatrixInverse );