From 70304f8633c8cf8faa530dadf648ecfcabf80655 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Thu, 13 Feb 2020 23:34:59 -0300 Subject: Hide extra options from various nodes if they're not enabled --- scene/resources/environment.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scene/resources/environment.cpp') diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index 6f6af93848..c04b271d81 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -441,6 +441,7 @@ void Environment::_update_ssao() { void Environment::set_sdfgi_enabled(bool p_enabled) { sdfgi_enabled = p_enabled; _update_sdfgi(); + notify_property_list_changed(); } bool Environment::is_sdfgi_enabled() const { @@ -983,6 +984,7 @@ void Environment::_validate_property(PropertyInfo &property) const { "auto_exposure_", "ss_reflections_", "ssao_", + "sdfgi_", "glow_", "adjustment_", nullptr -- cgit v1.2.3