Skip to content
Permalink
Browse files

Fix tests

  • Loading branch information
wonder-sk committed Nov 13, 2018
1 parent fde8a03 commit 3692b6a1d7a31e0ca3e4d14226faaf2dd478a7c0
Showing with 4 additions and 0 deletions.
  1. +1 −0 src/3d/qgspointlightsettings.h
  2. +3 −0 tests/src/3d/testqgs3drendering.cpp
@@ -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)
@@ -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() );

0 comments on commit 3692b6a

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