Skip to content

Commit

Permalink
Environment GUi is no longer always-shown (#2452)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Emminizer <daniel.emminizer@nrl.navy.mil>
  • Loading branch information
emminizer and Daniel Emminizer committed Feb 28, 2024
1 parent c8c8086 commit a6e7a00
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 a6e7a00

Please sign in to comment.