From 85fdae3c82d27ab6cde0fdcc7448a9a92d06573f Mon Sep 17 00:00:00 2001 From: Daniel Emminizer Date: Mon, 26 Feb 2024 13:12:59 -0500 Subject: [PATCH] Environment GUI is no longer always-shown. --- src/osgEarth/ImGui/EnvironmentGUI | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgEarth/ImGui/EnvironmentGUI b/src/osgEarth/ImGui/EnvironmentGUI index c76f91c22f..cdca12e096 100644 --- a/src/osgEarth/ImGui/EnvironmentGUI +++ b/src/osgEarth/ImGui/EnvironmentGUI @@ -154,7 +154,7 @@ namespace osgEarth void draw(osg::RenderInfo& ri) override { - if (!findNodeOrHide(_mapNode, ri)) + if (!isVisible() || !findNodeOrHide(_mapNode, ri)) return; if (ImGui::Begin(name(), visible()))