Skip to content
Permalink
Browse files

[3d] Update vector layers when modifications are made to them

(cherry picked from commit 9abe7d1)
  • Loading branch information
nyalldawson committed Nov 20, 2020
1 parent 03bef69 commit d1f3f00baf3d760dc705f5391b06083b0e00dcd6
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/3d/qgs3dmapscene.cpp
@@ -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 )
@@ -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 );
}

0 comments on commit d1f3f00

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