瀏覽代碼

Merge pull request #20224 from WestLangley/dev_camera_update_world

Camera: Properly update world matrix prior to use
Mr.doob 4 年之前
父節點
當前提交
1323906272
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/cameras/Camera.js

+ 1 - 1
src/cameras/Camera.js

@@ -43,7 +43,7 @@ Camera.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		}
 
-		this.updateMatrixWorld( true );
+		this.updateWorldMatrix( true, false );
 
 		const e = this.matrixWorld.elements;