mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Node tool: add default Z value to new vertices in 3D geometries (fixes #16240)
This commit is contained in:
parent
bdd81685a1
commit
f5b38fedba
@ -1390,7 +1390,11 @@ void QgsNodeTool::moveVertex( const QgsPointXY &mapPoint, const QgsPointLocator:
|
||||
if ( addingAtEndpoint && vid.vertex != 0 ) // appending?
|
||||
vid.vertex++;
|
||||
|
||||
if ( !geomTmp->insertVertex( vid, QgsPoint( layerPoint ) ) )
|
||||
QgsPoint pt( layerPoint );
|
||||
if ( QgsWkbTypes::hasZ( dragLayer->wkbType() ) )
|
||||
pt.addZValue( defaultZValue() );
|
||||
|
||||
if ( !geomTmp->insertVertex( vid, pt ) )
|
||||
{
|
||||
QgsDebugMsg( "append vertex failed!" );
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user