Skip to content

Commit

Permalink
[3d] Update vector layers when modifications are made to them
Browse files Browse the repository at this point in the history
(cherry picked from commit 9abe7d1)
  • Loading branch information
nyalldawson committed Nov 20, 2020
1 parent 03bef69 commit d1f3f00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/3d/qgs3dmapscene.cpp
Expand Up @@ -770,6 +770,7 @@ void Qgs3DMapScene::addLayerEntity( QgsMapLayer *layer )
{
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( layer );
connect( vlayer, &QgsVectorLayer::selectionChanged, this, &Qgs3DMapScene::onLayerRenderer3DChanged );
connect( vlayer, &QgsVectorLayer::layerModified, this, &Qgs3DMapScene::onLayerRenderer3DChanged );
}

if ( layer->type() == QgsMapLayerType::MeshLayer )
Expand Down Expand Up @@ -797,6 +798,7 @@ void Qgs3DMapScene::removeLayerEntity( QgsMapLayer *layer )
{
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( layer );
disconnect( vlayer, &QgsVectorLayer::selectionChanged, this, &Qgs3DMapScene::onLayerRenderer3DChanged );
disconnect( vlayer, &QgsVectorLayer::layerModified, this, &Qgs3DMapScene::onLayerRenderer3DChanged );
mModelVectorLayers.removeAll( layer );
}

Expand Down

0 comments on commit d1f3f00

Please sign in to comment.