mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix Z interpolation on vertex moved/added by the vertex tool. fixes #38561
This commit is contained in:
parent
5c8013df61
commit
4fa41bf62d
@ -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 ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user