Просмотр исходного кода

SpotLightHelper: Make sure matrixWorld is updated.

Mr.doob 8 лет назад
Родитель
Сommit
ad52ec86fa
1 измененных файлов с 2 добавлено и 0 удалено
  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 );