1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

LP-32 add warning when no map node in geo transform node

This commit is contained in:
Philippe Renon 2016-06-27 23:41:55 +02:00
parent 4cc1d0cb15
commit 5b8ed2a044

View File

@ -123,6 +123,7 @@ public:
if (mapNode) { if (mapNode) {
geoPoint = osgQtQuick::toGeoPoint(mapNode->getTerrain()->getSRS(), position); geoPoint = osgQtQuick::toGeoPoint(mapNode->getTerrain()->getSRS(), position);
} else { } else {
qWarning() << "OSGGeoTransformNode::onChildNodeChanged - no map node";
geoPoint = osgQtQuick::toGeoPoint(position); geoPoint = osgQtQuick::toGeoPoint(position);
} }
if (clampToTerrain && mapNode) { if (clampToTerrain && mapNode) {