1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

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

Revert "In editor, instance DirectionalLight with an initial orientation"
This commit is contained in:
Rémi Verschelde
2017-10-26 22:33:27 +02:00
committed by GitHub

View File

@@ -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) {