Skip to content
Permalink
Browse files

Only show compatible symbols in 3d symbol widget

  • Loading branch information
nyalldawson committed Jul 29, 2020
1 parent fbdc676 commit 2ad4337bed64dd5933761fc1ab1d615d85b58052
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/3d/qgssymbol3dwidget.cpp
@@ -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 );
@@ -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:

0 comments on commit 2ad4337

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