diff options
Diffstat (limited to 'scene/resources/environment.cpp')
-rw-r--r-- | scene/resources/environment.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index 285b11fefd..6790f02128 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -815,6 +815,7 @@ float Environment::get_fog_height_curve() const { } #ifndef DISABLE_DEPRECATED +// Kept for compatibility from 3.x to 4.0. bool Environment::_set(const StringName &p_name, const Variant &p_value) { if (p_name == "background_sky") { set_sky(p_value); @@ -822,6 +823,10 @@ bool Environment::_set(const StringName &p_name, const Variant &p_value) { } else if (p_name == "background_sky_custom_fov") { set_sky_custom_fov(p_value); return true; + } else if (p_name == "background_sky_orientation") { + Vector3 euler = p_value.operator Basis().get_euler(); + set_sky_rotation(euler); + return true; } else { return false; } |