Skip to content

Commit

Permalink
Fix a gcc compile error in ImGuiEventHandler.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron authored Nov 29, 2024
1 parent 3b5757f commit cc322ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osgEarthImGui/ImGuiEventHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ bool ImGuiEventHandler::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActio
auto view = aa.asView();
if (view)
{
osg::Camera* camera = view->getNumSlaves() > 0 ? view->getSlave(0)._camera : view->getCamera();
osg::Camera* camera = view->getNumSlaves() > 0 ? view->getSlave(0)._camera.get() : view->getCamera();
camera->setPreDrawCallback(new PreDrawOp(*this));
camera->setPostDrawCallback(new PostDrawOp(*this));
_initialized = true;
Expand Down

0 comments on commit cc322ec

Please sign in to comment.