Skip to content

Commit

Permalink
[3d] Fix reset buttons in 3d config dialog reset values to 0, not ini…
Browse files Browse the repository at this point in the history
…tial settings

(cherry-picked from df1832f)
  • Loading branch information
nyalldawson committed Jul 30, 2018
1 parent 2ae6b72 commit a1ef59c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/3d/qgs3dmapconfigwidget.cpp
Expand Up @@ -34,6 +34,13 @@ Qgs3DMapConfigWidget::Qgs3DMapConfigWidget( Qgs3DMapSettings *map, QgsMapCanvas
Q_ASSERT( map );
Q_ASSERT( mainCanvas );

spinTerrainScale->setClearValue( 1.0 );
spinTerrainResolution->setClearValue( 16 );
spinTerrainSkirtHeight->setClearValue( 10 );
spinMapResolution->setClearValue( 512 );
spinScreenError->setClearValue( 3 );
spinGroundError->setClearValue( 1 );

cboTerrainLayer->setAllowEmptyLayer( true );
cboTerrainLayer->setFilters( QgsMapLayerProxyModel::RasterLayer );

Expand Down

0 comments on commit a1ef59c

Please sign in to comment.