Skip to content
Permalink
Browse files

[3d] Fix reset buttons in 3d config dialog reset values to 0, not ini…

…tial settings

(cherry-picked from df1832f)
  • Loading branch information
nyalldawson committed Jul 30, 2018
1 parent 2ae6b72 commit a1ef59ca112647588632f80c975b8585a2bf5188
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/3d/qgs3dmapconfigwidget.cpp
@@ -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 );

0 comments on commit a1ef59c

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