Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
again more cad tool cleaning mesh edit map tool
  • Loading branch information
vcloarec committed Apr 26, 2023
1 parent b00dfdd commit 5ef24f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/mesh/qgsmaptooleditmeshframe.cpp
Expand Up @@ -920,6 +920,7 @@ void QgsMapToolEditMeshFrame::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
mCurrentEdge.first != -1 && mCurrentEdge.second != -1 ) // flip edge
{
clearSelection();
mCadDockWidget->clearPoints();
const QVector<int> edgeVert = edgeVertices( mCurrentEdge );
mCurrentEditor->flipEdge( edgeVert.at( 0 ), edgeVert.at( 1 ) );
mCurrentEdge = {-1, -1};
Expand All @@ -930,13 +931,17 @@ void QgsMapToolEditMeshFrame::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
mCurrentEdge.first != -1 && mCurrentEdge.second != -1 ) // merge two faces
{
clearSelection();
mCadDockWidget->clearPoints();
const QVector<int> edgeVert = edgeVertices( mCurrentEdge );
mCurrentEditor->merge( edgeVert.at( 0 ), edgeVert.at( 1 ) );
mCurrentEdge = {-1, -1};
highLight( mapPoint );
}
else
{
select( mapPoint, e->modifiers(), tolerance );
mCadDockWidget->clearPoints();
}
}
break;
case AddingNewFace:
Expand Down

0 comments on commit 5ef24f3

Please sign in to comment.