소스 검색

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