Skip to content

Commit

Permalink
Merge pull request #18351 from DavidPeicho/fix/camera-matrixworldinv
Browse files Browse the repository at this point in the history
Camera: update `matrixWorldInverse` in `updateWorldMatrix()` method
  • Loading branch information
Mugen87 authored Jan 10, 2020
2 parents e62cb59 + 0740ec8 commit 998a21e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cameras/Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 998a21e

Please sign in to comment.