瀏覽代碼

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;
-
 	}
 
 	//