Skip to content

Commit

Permalink
fix update temporal for 3D scene
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Jan 15, 2023
1 parent 803fb9f commit 695a334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/3d/qgs3dmapscene.cpp
Expand Up @@ -750,9 +750,9 @@ void Qgs3DMapScene::onLayersChanged()

void Qgs3DMapScene::updateTemporal()
{
for ( auto it = mLayerEntities.keyBegin(); it != mLayerEntities.keyEnd(); it++ )
const QList<QgsMapLayer * > layers = mLayerEntities.keys();
for ( QgsMapLayer *layer : layers )
{
QgsMapLayer *layer = *it;
if ( layer->temporalProperties()->isActive() )
{
removeLayerEntity( layer );
Expand Down

0 comments on commit 695a334

Please sign in to comment.