mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
LP-362 enable osg log redirection to Qt
This commit is contained in:
parent
54b33e0a07
commit
026ef32f73
@ -71,9 +71,9 @@ void OsgEarth::registerQmlTypes()
|
||||
}
|
||||
registered = true;
|
||||
|
||||
// redirect osg logging to Qt (and export OSG_NOTIFY_LEVEL=DEBUG to enable osg logging)
|
||||
// Note : enabling the notify handler seems to cause crashes (the notifier is probably not thread safe)
|
||||
// osg::setNotifyHandler(new QtNotifyHandler());
|
||||
// use "export OSG_NOTIFY_LEVEL=DEBUG" on command line to enable osg logging
|
||||
// redirect osg logging to Qt
|
||||
osg::setNotifyHandler(new QtNotifyHandler());
|
||||
|
||||
// initialize();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user