summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorGiantblargg <ddoran3@gmail.com>2017-10-22 04:13:46 -0600
committerGitHub <noreply@github.com>2017-10-22 04:13:46 -0600
commit0c5eba826c9c9c87792ac416973d671e8b0a70d8 (patch)
treeaf03596aafc492edfddcf4399dda83f6e4a78777 /scene
parent14b1741cbf998f6d950a006681b15803362442d7 (diff)
Revert "In editor, instance DirectionalLight with an initial orientation"
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/light.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/scene/3d/light.cpp b/scene/3d/light.cpp
index e994f4c79e..02d10523e7 100644
--- a/scene/3d/light.cpp
+++ b/scene/3d/light.cpp
@@ -369,12 +369,6 @@ DirectionalLight::DirectionalLight()
set_shadow_depth_range(SHADOW_DEPTH_RANGE_STABLE);
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) {