Fix Z interpolation on vertex moved/added by the vertex tool. fixes #38561

This commit is contained in:
Loïc Bartoletti 2020-10-05 15:42:56 +02:00
parent 5c8013df61
commit 4fa41bf62d

View File

@ -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 ) )
{