2
0
Эх сурвалжийг харах

Editor: AmbientLight couldn't be removed.

Mr.doob 12 жил өмнө
parent
commit
42b55a79fb

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