Переглянути джерело

SpotLightHelper: Make sure matrixWorld is updated.

Mr.doob 8 роки тому
батько
коміт
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 );