Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Nov 13, 2018
1 parent fde8a03 commit 3692b6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/3d/qgspointlightsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class QDomElement;
class QgsPointLightSettings
{
public:
//! Construct a point light with default values
QgsPointLightSettings() = default;

//! Returns position of the light (in 3D world coordinates)
Expand Down
3 changes: 3 additions & 0 deletions tests/src/3d/testqgs3drendering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ void TestQgs3DRendering::testExtrudedPolygons()
map->setCrs( mProject->crs() );
map->setOrigin( QgsVector3D( fullExtent.center().x(), fullExtent.center().y(), 0 ) );
map->setLayers( QList<QgsMapLayer *>() << mLayerRgb << mLayerBuildings );
QgsPointLightSettings defaultLight;
defaultLight.setPosition( QgsVector3D( 0, 1000, 0 ) );
map->setPointLights( QList<QgsPointLightSettings>() << defaultLight );

QgsFlatTerrainGenerator *flatTerrain = new QgsFlatTerrainGenerator;
flatTerrain->setCrs( map->crs() );
Expand Down

0 comments on commit 3692b6a

Please sign in to comment.