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 4481380 commit 8dadfa41d4c3268f8e329ef3d96c5a76d8451eb0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgstessellator.cpp
@@ -439,7 +439,7 @@ void QgsTessellator::addPolygon( const QgsPolygon &polygon, float extrusionHeigh
const double *zData = !mNoZ ? exterior->zData() : nullptr;
for ( int i = 0; i < 3; i++ )
{
mData << *xData++ - mOriginX << ( mNoZ ? 0 : *zData++ ) << - *yData++ + mOriginY;
mData << *xData++ - mOriginX << ( !zData ? 0 : *zData++ ) << - *yData++ + mOriginY;
if ( mAddNormals )
mData << pNormal.x() << pNormal.z() << - pNormal.y();
}

0 comments on commit 8dadfa4

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