Browse Source

Editor: Fix light shadow configurations.

Mugen87 4 years ago
parent
commit
62facf3d50
1 changed files with 14 additions and 0 deletions
  1. 14 0
      editor/js/Sidebar.Object.js

+ 14 - 0
editor/js/Sidebar.Object.js

@@ -629,6 +629,20 @@ function SidebarObject( editor ) {
 
 		}
 
+		//
+
+		if ( object.isLight ) {
+
+			objectReceiveShadow.setDisplay( 'none' );
+
+		}
+
+		if ( object.isAmbientLight || object.isHemisphereLight ) {
+
+			objectShadowRow.setDisplay( 'none' );
+
+		}
+
 	}
 
 	function updateTransformRows( object ) {