فهرست منبع

Merge pull request #20358 from Mugen87/dev35

Editor: Fix light shadow configurations.
Mr.doob 4 سال پیش
والد
کامیت
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 ) {
 	function updateTransformRows( object ) {