Skip to content
Permalink
Browse files

fix 3d mesh dataset rendering

  • Loading branch information
vcloarec authored and nyalldawson committed Oct 12, 2020
1 parent dbe2a3b commit 5aba56c0a4c5986d5129d4fc23a6a2458020cefb
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/3d/mesh/qgsmesh3dgeometry_p.cpp
@@ -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

0 comments on commit 5aba56c

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