瀏覽代碼

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 ];