Skip to content
Permalink
Browse files

Fix display of point cloud layer properties/preview in browser

  • Loading branch information
nyalldawson committed Oct 26, 2020
1 parent 56f5010 commit b851caa9edb74c42cb440e4500c270244e4d1653
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/gui/qgsbrowserdockwidget_p.cpp
@@ -221,7 +221,9 @@ void QgsBrowserLayerProperties::setItem( QgsDataItem *item )
case QgsMapLayerType::PointCloudLayer:
{
QgsDebugMsgLevel( QStringLiteral( "creating point cloud layer" ), 2 );
mLayer = qgis::make_unique< QgsPointCloudLayer >( layerItem->uri(), layerItem->name() );
QgsPointCloudLayer::LayerOptions options { QgsProject::instance()->transformContext() };
options.skipCrsValidation = true;
mLayer = qgis::make_unique< QgsPointCloudLayer >( layerItem->uri(), layerItem->name(), layerItem->providerKey(), options );
break;
}

0 comments on commit b851caa

Please sign in to comment.
You can’t perform that action at this time.