fix travis

This commit is contained in:
Peter Petrik 2019-01-24 11:08:21 +01:00
parent 967893a637
commit c90905bd65
2 changed files with 9 additions and 1 deletions

View File

@ -27,6 +27,8 @@
using namespace SpatialIndex;
///@cond PRIVATE
static Region faceToRegion( const QgsMesh &mesh, int id )
{
const QgsMeshFace face = mesh.face( id );
@ -288,7 +290,7 @@ class QgsMeshSpatialIndexData : public QSharedData
};
// -------------------------------------------------------------------------
///@endcond
QgsMeshSpatialIndex::QgsMeshSpatialIndex()
{

View File

@ -24,6 +24,7 @@
#include "qgssinglebandpseudocolorrenderer.h"
#include "qgsvectorlayer.h"
#include "qgsmeshlayer.h"
#include "qgsmeshrenderersettings.h"
#include "qgs3dmapscene.h"
#include "qgs3dmapsettings.h"
@ -104,6 +105,11 @@ void TestQgs3DRendering::initTestCase()
mLayerMesh = new QgsMeshLayer( dataDir + "/mesh/quad_flower.2dm", "mesh", "mdal" );
QVERIFY( mLayerMesh->isValid() );
mLayerMesh->setCrs( mLayerDtm->crs() ); // this testing mesh does not have any CRS defined originally
// disable rendering of scalar 2d datasets for now
QgsMeshRendererSettings settings = mLayerMesh->rendererSettings();
settings.setActiveScalarDataset();
settings.setActiveVectorDataset();
mLayerMesh->setRendererSettings( settings );
mProject->addMapLayer( mLayerMesh );
QgsPhongMaterialSettings meshMaterial;