Bläddra i källkod

Remove redundant initialisation

Oliver Sand 12 år sedan
förälder
incheckning
ce7425f269
2 ändrade filer med 0 tillägg och 10 borttagningar
  1. 0 5
      src/extras/helpers/DirectionalLightHelper.js
  2. 0 5
      src/extras/helpers/SpotLightHelper.js

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

@@ -72,11 +72,6 @@ THREE.DirectionalLightHelper = function ( light, sphereSize ) {
 		this.targetLine = new THREE.Line( lineGeometry, lineMaterial );
 		this.targetLine.properties.isGizmo = true;
 
-	}
-	else {
-
-		this.targetSphere = null;
-
 	}
 
 	//

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

@@ -91,11 +91,6 @@ THREE.SpotLightHelper = function ( light, sphereSize ) {
 		this.targetLine = new THREE.Line( lineGeometry, lineMaterial );
 		this.targetLine.properties.isGizmo = true;
 
-	}
-	else {
-
-		this.targetSphere = null;
-
 	}
 
 	//