From c9709e2a62848f99c0702b4e223beb810d1e42d8 Mon Sep 17 00:00:00 2001 From: Michael Danilov Date: Wed, 18 Aug 2021 23:58:55 +0200 Subject: [PATCH] Local Weather: auto-enable 3D clouds and disable the checkbox. --- gui/dialogs/advanced-graphics-options.xml | 7 ++++++- gui/dialogs/weather.xml | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gui/dialogs/advanced-graphics-options.xml b/gui/dialogs/advanced-graphics-options.xml index 139c3bb26..e7a28e994 100644 --- a/gui/dialogs/advanced-graphics-options.xml +++ b/gui/dialogs/advanced-graphics-options.xml @@ -1098,7 +1098,12 @@ left - + + + /nasal/local_weather/enabled + + + 3d-clouds /sim/rendering/clouds3d-enable diff --git a/gui/dialogs/weather.xml b/gui/dialogs/weather.xml index 4b5cd8130..eb1c1a467 100644 --- a/gui/dialogs/weather.xml +++ b/gui/dialogs/weather.xml @@ -174,6 +174,8 @@ # If Local Weather is enabled, re-initialize with updated # initial tile and tile selection. setprop("/nasal/local_weather/enabled", "true"); + # Local Weather requires 3D clouds. + setprop("/sim/rendering/clouds3d-enable", "true"); # Re-initialize local weather. settimer( func {local_weather.set_tile();}, 0.2);