1
0
Fork 0

src/Viewer/FGEventHandler.cxx: reduced noisy diagnostic with custom camera-group.

Looks like SviewGetEventViewport() often returns null when using custom
camera-group?
This commit is contained in:
Julian Smith 2021-08-03 15:36:32 +01:00
parent d91bc730b6
commit f6a11ced91

View file

@ -106,7 +106,7 @@ FGEventHandler::eventToViewport(const osgGA::GUIEventAdapter& ea, osgGA::GUIActi
// CompositeViewer is enabled and this is not the main window.
simgear::compositor::Compositor* compositor = SviewGetEventViewport(ea);
if (!compositor) {
SG_LOG(SG_GENERAL, SG_ALERT, "SviewGetEventViewport() returned nullptr");
SG_LOG(SG_GENERAL, SG_DEBUG, "SviewGetEventViewport() returned nullptr");
return WindowType_NONE;
}
vport = compositor->getViewport();