From 342436187e1da525af6a04cd6adeffc435219f6f Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 2 Apr 2021 16:38:55 +0100 Subject: [PATCH] Rendering dialog: fix initial preset combo value --- gui/dialogs/rendering.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gui/dialogs/rendering.xml b/gui/dialogs/rendering.xml index 8a041c8d2..47e85b8ba 100644 --- a/gui/dialogs/rendering.xml +++ b/gui/dialogs/rendering.xml @@ -498,6 +498,10 @@ 'clear-destination':1, })); + if (getprop('/sim/rendering/preset-active')) { + setprop('/sim/gui/dialogs/rendering/preset', getprop('/sim/rendering/preset-name')); + } + # WS 3.0 var osg_version = getprop("/sim/version/openscenegraph"); if ((osg_version != nil) and (find("3.6", osg_version) == 0 or find("3.7", osg_version) == 0)) {