Skip to content

Commit

Permalink
Environment GUI is no longer always-shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Emminizer committed Feb 26, 2024
1 parent 90b9a52 commit 85fdae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osgEarth/ImGui/EnvironmentGUI
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 85fdae3

Please sign in to comment.