Pārlūkot izejas kodu

Merge pull request #20358 from Mugen87/dev35

Editor: Fix light shadow configurations.
Mr.doob 4 gadi atpakaļ
vecāks
revīzija
5ae634e1a4
1 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  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 ) {