summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-26 22:33:27 +0200
committerGitHub <noreply@github.com>2017-10-26 22:33:27 +0200
commit89cec177a22ffaa53197c8d9b13bf0849fecbb8b (patch)
tree033f31eafb20621bb0749d1087d088a866170d92
parent2987e6ce4ffc69da5efc0903cc00ce12e72d2125 (diff)
parent0c5eba826c9c9c87792ac416973d671e8b0a70d8 (diff)
Merge pull request #12308 from GiantBlargg/revert-11587-directional_light_init
Revert "In editor, instance DirectionalLight with an initial orientation"
-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) {