Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix 3d mesh dataset rendering
  • Loading branch information
vcloarec authored and nyalldawson committed Oct 12, 2020
1 parent dbe2a3b commit 5aba56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3d/mesh/qgsmesh3dgeometry_p.cpp
Expand Up @@ -416,7 +416,7 @@ int QgsMeshDataset3dGeometry::extractDataset( QVector<double> &verticalMagnitude
//if invalid (for example, static mode) use the scalar dataset index
int vertDataSetIndex = scalarDatasetIndex.dataset();
vertDataSetIndex = std::min( vertDataSetIndex, layer->datasetCount( mVerticalGroupDatasetIndex ) - 1 );
verticalMagDatasetIndex = QgsMeshDatasetIndex( vertDataSetIndex, mVerticalGroupDatasetIndex );
verticalMagDatasetIndex = QgsMeshDatasetIndex( mVerticalGroupDatasetIndex, vertDataSetIndex );
}
//define the active face for vertical magnitude, the inactive faces will not be rendered
// The active face flag values are defined based on the vertival magnitude dataset
Expand Down

0 comments on commit 5aba56c

Please sign in to comment.