Browse Source

Editor: AmbientLight couldn't be removed.

Mr.doob 12 years ago
parent
commit
42b55a79fb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      editor/js/ui/Viewport.js

+ 4 - 1
editor/js/ui/Viewport.js

@@ -409,7 +409,10 @@ var Viewport = function ( signals ) {
 
 
 		var parent = selected.parent;
 		var parent = selected.parent;
 
 
-		if ( selected instanceof THREE.Light ) {
+		if ( selected instanceof THREE.PointLight ||
+		     selected instanceof THREE.DirectionalLight ||
+		     selected instanceof THREE.SpotLight ||
+		     selected instanceof THREE.HemisphereLight ) {
 
 
 			var helper = objectsToHelpers[ selected.id ];
 			var helper = objectsToHelpers[ selected.id ];