Skip to content

Commit

Permalink
Fix more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 26, 2020
1 parent cf368ba commit b71de9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/3d/qgs3dmapscene.cpp
Expand Up @@ -987,6 +987,7 @@ void Qgs3DMapScene::exportScene( const Qgs3DMapExportSettings &exportSettings )
case QgsMapLayerType::MeshLayer:
case QgsMapLayerType::VectorTileLayer:
case QgsMapLayerType::AnnotationLayer:
case QgsMapLayerType::PointCloudLayer:
notParsedLayers.push_back( layer->name() );
break;
}
Expand Down
4 changes: 4 additions & 0 deletions src/3d/qgspointcloudlayer3drenderer.cpp
Expand Up @@ -75,6 +75,8 @@ Qt3DCore::QEntity *QgsPointCloudLayer3DRenderer::createEntity( const Qgs3DMapSet

void QgsPointCloudLayer3DRenderer::writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const
{
Q_UNUSED( context )

QDomDocument doc = elem.ownerDocument();

elem.setAttribute( QStringLiteral( "layer" ), mLayerRef.layerId );
Expand All @@ -91,6 +93,8 @@ void QgsPointCloudLayer3DRenderer::writeXml( QDomElement &elem, const QgsReadWri

void QgsPointCloudLayer3DRenderer::readXml( const QDomElement &elem, const QgsReadWriteContext &context )
{
Q_UNUSED( context )

mLayerRef = QgsMapLayerRef( elem.attribute( QStringLiteral( "layer" ) ) );

/*
Expand Down
4 changes: 4 additions & 0 deletions src/3d/qgspointcloudlayerchunkloader_p.cpp
Expand Up @@ -94,6 +94,7 @@ QgsPointCloud3DSymbolHandler::QgsPointCloud3DSymbolHandler()

bool QgsPointCloud3DSymbolHandler::prepare( const Qgs3DRenderContext &context )
{
Q_UNUSED( context )
return true;
}

Expand Down Expand Up @@ -146,6 +147,9 @@ void QgsPointCloud3DSymbolHandler::finalize( Qt3DCore::QEntity *parent, const Qg
#include <QPointSize>
void QgsPointCloud3DSymbolHandler::makeEntity( Qt3DCore::QEntity *parent, const Qgs3DRenderContext &context, QgsPointCloud3DSymbolHandler::PointData &out, bool selected )
{
Q_UNUSED( selected )
Q_UNUSED( context )

if ( out.positions.empty() )
return;

Expand Down

0 comments on commit b71de9c

Please sign in to comment.