Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Z interpolation on vertex moved/added by the vertex tool. fixes #…
  • Loading branch information
lbartoletti committed Oct 21, 2020
1 parent 5c8013d commit 4fa41bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/vertextool/qgsvertextool.cpp
Expand Up @@ -2080,6 +2080,10 @@ void QgsVertexTool::moveVertex( const QgsPointXY &mapPoint, const QgsPointLocato

QgsPoint layerPoint = matchToLayerPoint( dragLayer, mapPoint, mapPointMatch );

// needed to get Z value
if ( mapPointMatch && mapPointMatch->layer() && QgsWkbTypes::hasZ( mapPointMatch->layer()->wkbType() ) && mapPointMatch->hasEdge() )
layerPoint = mapPointMatch->interpolatedPoint();

QgsVertexId vid;
if ( !geom.vertexIdFromVertexNr( dragVertexId, vid ) )
{
Expand Down

0 comments on commit 4fa41bf

Please sign in to comment.