Skip to content

Commit

Permalink
SpotLightHelper: Make sure matrixWorld is updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed May 25, 2017
1 parent 00e5417 commit ad52ec8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helpers/SpotLightHelper.js
Expand Up @@ -71,6 +71,8 @@ SpotLightHelper.prototype.update = function () {

return function update() {

this.light.updateMatrixWorld();

var coneLength = this.light.distance ? this.light.distance : 1000;
var coneWidth = coneLength * Math.tan( this.light.angle );

Expand Down

0 comments on commit ad52ec8

Please sign in to comment.