@@ -35390,7 +35390,7 @@ THREE.FaceNormalsHelper.prototype.update = ( function ( object ) {
35390
35390
35391
35391
var v1 = new THREE.Vector3();
35392
35392
35393
- return function( object ) {
35393
+ return function ( object ) {
35394
35394
35395
35395
this.object.updateMatrixWorld( true );
35396
35396
@@ -35517,20 +35517,16 @@ THREE.HemisphereLightHelper.prototype.update = function () {
35517
35517
35518
35518
THREE.PointLightHelper = function ( light, sphereSize ) {
35519
35519
35520
- THREE.Object3D.call( this );
35521
-
35522
- this.matrixAutoUpdate = false;
35523
-
35524
35520
this.light = light;
35525
35521
35526
35522
var geometry = new THREE.SphereGeometry( sphereSize, 4, 2 );
35527
35523
var material = new THREE.MeshBasicMaterial( { fog: false, wireframe: true } );
35528
35524
material.color.copy( this.light.color ).multiplyScalar( this.light.intensity );
35529
35525
35530
- this.lightSphere = new THREE.Mesh( geometry, material );
35531
- this.lightSphere.matrixWorld = this.light.matrixWorld;
35532
- this.lightSphere.matrixAutoUpdate = false ;
35533
- this.add( this.lightSphere ) ;
35526
+ THREE.Mesh.call( this, geometry, material );
35527
+
35528
+ this.matrixWorld = this.light.matrixWorld ;
35529
+ this.matrixAutoUpdate = false ;
35534
35530
35535
35531
/*
35536
35532
var distanceGeometry = new THREE.IcosahedronGeometry( 1, 2 );
@@ -35556,15 +35552,13 @@ THREE.PointLightHelper = function ( light, sphereSize ) {
35556
35552
35557
35553
};
35558
35554
35559
- THREE.PointLightHelper.prototype = Object.create( THREE.Object3D .prototype );
35555
+ THREE.PointLightHelper.prototype = Object.create( THREE.Mesh .prototype );
35560
35556
35561
35557
THREE.PointLightHelper.prototype.update = function () {
35562
35558
35563
- this.lightSphere. material.color.copy( this.light.color ).multiplyScalar( this.light.intensity );
35559
+ this.material.color.copy( this.light.color ).multiplyScalar( this.light.intensity );
35564
35560
35565
35561
/*
35566
- this.lightDistance.material.color.copy( this.color );
35567
-
35568
35562
var d = this.light.distance;
35569
35563
35570
35564
if ( d === 0.0 ) {
0 commit comments