Skip to content
Permalink
Browse files
fix mesh terrain
  • Loading branch information
vcloarec authored and nyalldawson committed May 31, 2021
1 parent 3d31477 commit 9fd0e3429c44436268621b49f5bfc1256f483eec
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/3d/mesh/qgsmeshterraingenerator.cpp
@@ -95,6 +95,9 @@ void QgsMeshTerrainGenerator::setLayer( QgsMeshLayer *layer )
mLayer = QgsMapLayerRef( layer );
mIsValid = layer != nullptr;

if ( layer )
mTerrainTilingScheme = QgsTilingScheme( layer->extent(), layer->crs() );

updateTriangularMesh();
}

@@ -108,7 +111,7 @@ QgsTerrainGenerator *QgsMeshTerrainGenerator::clone() const
{
QgsMeshTerrainGenerator *cloned = new QgsMeshTerrainGenerator();
cloned->mLayer = mLayer;
cloned->mTerrainTilingScheme = QgsTilingScheme();
cloned->mTerrainTilingScheme = mTerrainTilingScheme;
cloned->mCrs = mCrs;
cloned->mSymbol.reset( mSymbol->clone() );
cloned->mTransformContext = mTransformContext;

0 comments on commit 9fd0e34

Please sign in to comment.