浏览代码

Editor: Fix light shadow configurations.

Mugen87 4 年之前
父节点
当前提交
62facf3d50
共有 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 ) {