Skip to content
Permalink
Browse files

fix layout

  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Apr 8, 2021
1 parent e00881c commit 6288314642959917c5b95ed7f6db1e062f522a49
@@ -40,6 +40,7 @@ class CORE_EXPORT QgsPointCloudBlockRequest : public QObject
{
Q_OBJECT
public:

/**
* QgsPointCloudBlockRequest constructor
* Note: the istanced object will take ownership over \a tileDownloadManagerReply
@@ -246,13 +246,13 @@ int QgsPointCloudLayerRenderer::renderNodesAsync( const QVector<IndexedPointClou
for ( int i = 0; i < nodes.size(); ++i )
{
const IndexedPointCloudNode &n = nodes[i];
QgsPointCloudBlockRequest *blockReuqest = pc->asyncNodeData( n, request );
blockRequests[ i ] = blockReuqest;
QObject::connect( blockReuqest, &QgsPointCloudBlockRequest::finished, [ &, i, blockReuqest ]()
QgsPointCloudBlockRequest *blockRequest = pc->asyncNodeData( n, request );
blockRequests[ i ] = blockRequest;
QObject::connect( blockRequest, &QgsPointCloudBlockRequest::finished, [ &, i, blockRequest ]()
{
if ( !blockReuqest->block() )
if ( !blockRequest->block() )
{
QgsDebugMsg( QStringLiteral( "Unable to load node %1, error: %2" ).arg( n.toString(), blockReuqest->errorStr() ) );
QgsDebugMsg( QStringLiteral( "Unable to load node %1, error: %2" ).arg( n.toString(), blockRequest->errorStr() ) );
}
finishedLoadingBlock[ i ] = true;
// If all blocks are loaded, exit the event loop

0 comments on commit 6288314

Please sign in to comment.