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:
parent
d91bc730b6
commit
f6a11ced91
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue