1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +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) {
geoPoint = osgQtQuick::toGeoPoint(mapNode->getTerrain()->getSRS(), position);
} else {
qWarning() << "OSGGeoTransformNode::onChildNodeChanged - no map node";
geoPoint = osgQtQuick::toGeoPoint(position);
}
if (clampToTerrain && mapNode) {