Skip to content
Permalink
Browse files

Node tool: add default Z value to new vertices in 3D geometries (fixes

  • Loading branch information
wonder-sk committed Jun 8, 2017
1 parent bdd8168 commit f5b38fedbae096b9269f2ea81a1732c0b9ef27cc
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/app/nodetool/qgsnodetool.cpp
@@ -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;

0 comments on commit f5b38fe

Please sign in to comment.
You can’t perform that action at this time.