Просмотр исходного кода

Fixed helpers silly bug. Thanks @WestLangley.

Mr.doob 13 лет назад
Родитель
Сommit
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 );
 	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 );

粤ICP备19079148号