Skip to content

Commit

Permalink
Use QgsFeature3DHandler implementation for line 3D symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jan 17, 2019
1 parent 7f5d8ea commit 2d56345
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 163 deletions.
2 changes: 1 addition & 1 deletion src/3d/qgsvectorlayer3drenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Qt3DCore::QEntity *QgsVectorLayer3DRenderer::createEntity( const Qgs3DMapSetting
else if ( mSymbol->type() == QLatin1String( "point" ) )
return new QgsPoint3DSymbolEntity( map, vl, *static_cast<QgsPoint3DSymbol *>( mSymbol.get() ) );
else if ( mSymbol->type() == QLatin1String( "line" ) )
return new QgsLine3DSymbolEntity( map, vl, *static_cast<QgsLine3DSymbol *>( mSymbol.get() ) );
return Qgs3DSymbolImpl::entityForLine3DSymbol( map, vl, *static_cast<QgsLine3DSymbol *>( mSymbol.get() ) );
else
return nullptr;
}
Expand Down
Loading

0 comments on commit 2d56345

Please sign in to comment.