Navigation Menu

Skip to content

Commit

Permalink
Only show compatible symbols in 3d symbol widget
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 29, 2020
1 parent fbdc676 commit 2ad4337
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/3d/qgssymbol3dwidget.cpp
Expand Up @@ -53,6 +53,7 @@ QgsSymbol3DWidget::QgsSymbol3DWidget( QgsVectorLayer *layer, QWidget *parent )
mStyleWidget = new QgsStyleItemsListWidget( this );
mStyleWidget->setStyle( QgsStyle::defaultStyle() );
mStyleWidget->setEntityType( QgsStyle::Symbol3DEntity );
mStyleWidget->setLayerType( mLayer->geometryType() );

connect( mStyleWidget, &QgsStyleItemsListWidget::selectionChanged, this, &QgsSymbol3DWidget::setSymbolFromStyle );
connect( mStyleWidget, &QgsStyleItemsListWidget::saveEntity, this, &QgsSymbol3DWidget::saveSymbol );
Expand Down Expand Up @@ -85,6 +86,7 @@ void QgsSymbol3DWidget::setSymbol( const QgsAbstract3DSymbol *symbol, QgsVectorL
{
int pageIndex;
mLayer = vlayer;
mStyleWidget->setLayerType( mLayer->geometryType() );
switch ( mLayer->geometryType() )
{
case QgsWkbTypes::PointGeometry:
Expand Down

0 comments on commit 2ad4337

Please sign in to comment.