diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-02-09 13:09:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-09 13:09:39 +0100 |
commit | 8908bdc7f2fd002d71e836ef4f9c16fdfdc69e99 (patch) | |
tree | 776830c027267a2ec52597b2feced61bbfe77648 /scene/resources | |
parent | 2a0c9faac218fe49c05ebcfe6fe2fa5db97fed20 (diff) | |
parent | edc56285419f2e0404095d9ebbdf93c498b788a0 (diff) |
Merge pull request #25653 from BastiaanOlij/fix_hide_skyrotation
Hide new sky properties if we don't have sky as a background
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/environment.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index a57b7bbb42..3c295267dc 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -303,7 +303,7 @@ Ref<Texture> Environment::get_adjustment_color_correction() const { void Environment::_validate_property(PropertyInfo &property) const { - if (property.name == "background_sky" || property.name == "background_sky_custom_fov" || property.name == "background_sky_orientation" || property.name == "ambient_light/sky_contribution") { + if (property.name == "background_sky" || property.name == "background_sky_custom_fov" || property.name == "background_sky_orientation" || property.name == "background_sky_rotation" || property.name == "background_sky_rotation_degrees" || property.name == "ambient_light/sky_contribution") { if (bg_mode != BG_SKY && bg_mode != BG_COLOR_SKY) { property.usage = PROPERTY_USAGE_NOEDITOR | PROPERTY_USAGE_INTERNAL; } |