瀏覽代碼

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