Browse Source

SpotLightHelper: Make sure matrixWorld is updated.

Mr.doob 8 years ago
parent
commit
ad52ec86fa
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/helpers/SpotLightHelper.js

+ 2 - 0
src/helpers/SpotLightHelper.js

@@ -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 );