Explorar o código

Editor: AmbientLight couldn't be removed.

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
42b55a79fb
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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 ];