Jelajahi Sumber

Merge pull request #20224 from WestLangley/dev_camera_update_world

Camera: Properly update world matrix prior to use
Mr.doob 4 tahun lalu
induk
melakukan
1323906272
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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;