소스 검색

Merge pull request #20358 from Mugen87/dev35

Editor: Fix light shadow configurations.
Mr.doob 5 년 전
부모
커밋
5ae634e1a4
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  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 ) {