Skip to content

Commit

Permalink
fix after Nyall review
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik authored and nyalldawson committed Oct 26, 2020
1 parent b7e8071 commit acccc63
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/CMakeLists.txt
Expand Up @@ -73,6 +73,7 @@ IF(WITH_APIDOC)
${CMAKE_SOURCE_DIR}/src/core/numericformats
${CMAKE_SOURCE_DIR}/src/core/pal
${CMAKE_SOURCE_DIR}/src/core/processing
${CMAKE_SOURCE_DIR}/src/core/pointcloud
${CMAKE_SOURCE_DIR}/src/core/providers
${CMAKE_SOURCE_DIR}/src/core/providers/memory
${CMAKE_SOURCE_DIR}/src/core/raster
Expand All @@ -96,6 +97,7 @@ IF(WITH_APIDOC)
${CMAKE_SOURCE_DIR}/src/gui/locator
${CMAKE_SOURCE_DIR}/src/gui/numericformats
${CMAKE_SOURCE_DIR}/src/gui/ogr
${CMAKE_SOURCE_DIR}/src/gui/pointcloud
${CMAKE_SOURCE_DIR}/src/gui/processing
${CMAKE_SOURCE_DIR}/src/gui/processing/models
${CMAKE_SOURCE_DIR}/src/gui/raster
Expand Down
6 changes: 6 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -7619,6 +7619,12 @@ bool QgisApp::openLayer( const QString &fileName, bool allowInteractive )
ok = static_cast< bool >( addMeshLayerPrivate( fileName, fileInfo.completeBaseName(), QStringLiteral( "mdal" ), false ) );
}

// Try to load as point cloud layer after raster & vector & mesh
if ( !ok )
{
ok = static_cast< bool >( addPointCloudLayerPrivate( fileName, fileInfo.completeBaseName(), false ) );
}

if ( !ok )
{
// we have no idea what this file is...
Expand Down
2 changes: 1 addition & 1 deletion src/core/pointcloud/qgspointcloudprovidermetadata.h
Expand Up @@ -26,7 +26,7 @@

/**
* This metadata class does not support creation of provider instances, because
* vector tile layer currently does not have a concept of data providers. This class
* point cloud layer currently does not have a concept of data providers. This class
* is only used to create data item provider (for browser integration).
*/
class QgsPointCloudProviderMetadata : public QgsProviderMetadata
Expand Down

0 comments on commit acccc63

Please sign in to comment.