浏览代码

Fixed helpers silly bug. Thanks @WestLangley.

Mr.doob 12 年之前
父节点
当前提交
aecf267471
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      src/extras/helpers/DirectionalLightHelper.js
  2. 2 0
      src/extras/helpers/SpotLightHelper.js

+ 2 - 0
src/extras/helpers/DirectionalLightHelper.js

@@ -7,6 +7,8 @@ THREE.DirectionalLightHelper = function ( light, sphereSize ) {
 
 	THREE.Object3D.call( this );
 
+	this.matrixAutoUpdate = false;
+
 	this.light = light;
 
 	var geometry = new THREE.SphereGeometry( sphereSize, 4, 2 );

+ 2 - 0
src/extras/helpers/SpotLightHelper.js

@@ -7,6 +7,8 @@ THREE.SpotLightHelper = function ( light, sphereSize ) {
 
 	THREE.Object3D.call( this );
 
+	this.matrixAutoUpdate = false;
+
 	this.light = light;
 
 	var geometry = new THREE.SphereGeometry( sphereSize, 4, 2 );