浏览代码

Merge pull request #12308 from GiantBlargg/revert-11587-directional_light_init

Revert "In editor, instance DirectionalLight with an initial orientation"
Rémi Verschelde 7 年之前
父节点
当前提交
89cec177a2
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      scene/3d/light.cpp

+ 0 - 6
scene/3d/light.cpp

@@ -369,12 +369,6 @@ DirectionalLight::DirectionalLight()
 	set_shadow_depth_range(SHADOW_DEPTH_RANGE_STABLE);
 	set_shadow_depth_range(SHADOW_DEPTH_RANGE_STABLE);
 
 
 	blend_splits = false;
 	blend_splits = false;
-
-#ifdef TOOLS_ENABLED
-	if (Engine::get_singleton()->is_editor_hint())
-		// Create light with a default natural "sun" orientation in editor, instead of looking horizontally on X
-		set_rotation_in_degrees(Vector3(-50, 25, 30));
-#endif
 }
 }
 
 
 void OmniLight::set_shadow_mode(ShadowMode p_mode) {
 void OmniLight::set_shadow_mode(ShadowMode p_mode) {