Преглед на файлове

Remove redundant initialisation

Oliver Sand преди 12 години
родител
ревизия
ce7425f269
променени са 2 файла, в които са добавени 0 реда и са изтрити 10 реда
  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;
-
 	}
 
 	//