Skip to content

Commit

Permalink
Make tessellator properly handle 2d triangles (fix #36024)
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed Apr 28, 2020
1 parent 19d2dc5 commit 800c54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgstessellator.cpp
Expand Up @@ -442,7 +442,7 @@ void QgsTessellator::addPolygon( const QgsPolygon &polygon, float extrusionHeigh
const double *zData = !mNoZ ? exterior->zData() : nullptr;
for ( int i = 0; i < 3; i++ )
{
float z = ( mNoZ ? 0 : *zData++ );
float z = ( ( mNoZ || !exterior->is3D() ) ? 0 : *zData++ );
if ( z < zMin )
zMin = z;
if ( z > zMax )
Expand Down

0 comments on commit 800c54f

Please sign in to comment.