Browse Source

Fixed helpers silly bug. Thanks @WestLangley.

Mr.doob 12 years ago
parent
commit
aecf267471

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

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