mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
fix Z interpolation for Middle of Segment
This commit is contained in:
parent
3eec50ea62
commit
430031f23f
@ -2081,7 +2081,7 @@ 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() )
|
||||
if ( mapPointMatch && mapPointMatch->layer() && QgsWkbTypes::hasZ( mapPointMatch->layer()->wkbType() ) && ( mapPointMatch->hasEdge() || mapPointMatch->hasMiddleSegment() ) )
|
||||
layerPoint = mapPointMatch->interpolatedPoint();
|
||||
|
||||
QgsVertexId vid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user