Skip to content
Permalink
Browse files

Address Nyall's reviews

  • Loading branch information
NEDJIMAbelgacem committed Nov 8, 2020
1 parent 23b723e commit d0084000e61800069238aa711e51dcdf860a8558
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/3d/qgscameracontroller.cpp
  2. +1 −1 src/app/3d/qgs3dmapconfigwidget.cpp
@@ -181,7 +181,7 @@ void QgsCameraController::resetView( float distance )
void QgsCameraController::setViewFromTop( float worldX, float worldY, float distance, float yaw )
{
QgsCameraPose camPose;
if ( mTerrainEntity != nullptr )
if ( mTerrainEntity )
camPose.setCenterPoint( QgsVector3D( worldX, mTerrainEntity->terrainElevationOffset(), worldY ) );
else
camPose.setCenterPoint( QgsVector3D( worldX, 0.0f, worldY ) );
@@ -75,7 +75,7 @@ Qgs3DMapConfigWidget::Qgs3DMapConfigWidget( Qgs3DMapSettings *map, QgsMapCanvas
spinMapResolution->setClearValue( 512 );
spinScreenError->setClearValue( 3 );
spinGroundError->setClearValue( 1 );
terrainElevationOffsetSpinBox->setClearValue( 0.0f );
terrainElevationOffsetSpinBox->setClearValue( 0.0 );

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

0 comments on commit d008400

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