Browse Source

Merge pull request #18351 from DavidPeicho/fix/camera-matrixworldinv

Camera: update `matrixWorldInverse` in `updateWorldMatrix()` method
Michael Herzog 5 years ago
parent
commit
998a21ec7d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/cameras/Camera.js

+ 8 - 0
src/cameras/Camera.js

@@ -65,6 +65,14 @@ Camera.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 	},
 
+	updateWorldMatrix: function ( updateParents, updateChildren ) {
+
+		Object3D.prototype.updateWorldMatrix.call( this, updateParents, updateChildren );
+
+		this.matrixWorldInverse.getInverse( this.matrixWorld );
+
+	},
+
 	clone: function () {
 
 		return new this.constructor().copy( this );