Skip to content

Commit

Permalink
QgsMesh3DSymbolEntityNode::renderer(): remove useless null checking o…
Browse files Browse the repository at this point in the history
…f layer

It is dereferenced just before
  • Loading branch information
rouault committed May 29, 2020
1 parent 81abbbb commit f519dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3d/symbols/qgsmesh3dsymbol_p.cpp
Expand Up @@ -115,7 +115,7 @@ Qt3DRender::QGeometryRenderer *QgsMesh3DSymbolEntityNode::renderer( const Qgs3DM
}

const QgsTriangularMesh *mesh = layer->triangularMesh();
if ( layer && mesh )
if ( mesh )
{
const QVector<QgsMeshFace> &triangles = mesh->triangles();
const QVector<QgsMeshVertex> &vertices = mesh->vertices();
Expand Down

0 comments on commit f519dac

Please sign in to comment.