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()))