Skip to content
Permalink
Browse files

Make tessellator properly handle 2d triangles (fix #36024)

(cherry picked from commit 800c54f)
  • Loading branch information
uclaros authored and nyalldawson committed Apr 27, 2020
1 parent cf22127 commit f8cd238361f2b38939eefce15b6b362f20d101a5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgstessellator.cpp
@@ -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 )

0 comments on commit f8cd238

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