소스 검색

Editor: AmbientLight couldn't be removed.

Mr.doob 12 년 전
부모
커밋
42b55a79fb
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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;
 
-		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 ];