Skip to content

Commit

Permalink
resize window properly on scene settings init
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Jan 23, 2021
1 parent 1c64a73 commit 9486a92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/3d/qgs3dmapcanvas.cpp
Expand Up @@ -95,9 +95,10 @@ void Qgs3DMapCanvas::setMap( Qgs3DMapSettings *map )
Q_ASSERT( !mMap );
Q_ASSERT( !mScene );

//QRect viewportRect( QPoint( 0, 0 ), size() );
QRect viewportRect( QPoint( 0, 0 ), size() );
Qgs3DMapScene *newScene = new Qgs3DMapScene( *map, mEngine );

mEngine->setSize( viewportRect.size() );
mEngine->setRootEntity( newScene );

if ( mScene )
Expand Down

0 comments on commit 9486a92

Please sign in to comment.