Преглед на файлове

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