Skip to content
Permalink
Browse files

fix early delete problem

  • Loading branch information
NEDJIMAbelgacem committed Nov 17, 2020
1 parent 6235155 commit 1ed3643bef28702e3d7977b0193a1dba314d0286
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/3d/qgspointcloudlayer3drenderer.cpp
@@ -80,7 +80,7 @@ Qt3DCore::QEntity *QgsPointCloudLayer3DRenderer::createEntity( const Qgs3DMapSet
if ( !pcl || !pcl->dataProvider() || !pcl->dataProvider()->index() )
return nullptr;

return new QgsPointCloudLayerChunkedEntity( pcl->dataProvider()->index(), map, mSymbol.get() );
return new QgsPointCloudLayerChunkedEntity( pcl->dataProvider()->index(), map, dynamic_cast<QgsPointCloud3DSymbol *>( mSymbol->clone() ) );
}

void QgsPointCloudLayer3DRenderer::setSymbol( QgsPointCloud3DSymbol *symbol )

0 comments on commit 1ed3643

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