Explorar o código

Properly update world matrix prior to use

WestLangley %!s(int64=5) %!d(string=hai) anos
pai
achega
5448fe3fc5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;