Skip to content

Commit

Permalink
more cad tool cleaning mesh edit map tool
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and github-actions[bot] committed Apr 26, 2023
1 parent b47cdf2 commit 094c326
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/mesh/qgsmaptooleditmeshframe.cpp
Expand Up @@ -986,6 +986,7 @@ void QgsMapToolEditMeshFrame::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
const QgsGeometry selectionGeom = mSelectionBand->asGeometry();
selectByGeometry( selectionGeom, e->modifiers() );
mSelectionBand->reset( Qgis::GeometryType::Polygon );
mCadDockWidget->clearPoints();
mCurrentState = Digitizing;
}
break;
Expand Down Expand Up @@ -1236,14 +1237,13 @@ void QgsMapToolEditMeshFrame::keyPressEvent( QKeyEvent *e )
mNewFaceBand->reset( Qgis::GeometryType::Polygon );
mNewFaceCandidate.clear();
mNewVerticesForNewFaceCandidate.clear();
mCadDockWidget->clearPoints();
mCurrentState = Digitizing;
consumned = true;
}
}
break;
case MovingSelection:
if ( e->key() == Qt::Key_Escape )
if ( e->key() == Qt:: Key_Escape )
{
mCurrentState = Digitizing;
mMovingEdgesRubberband->reset( Qgis::GeometryType::Line );
Expand Down Expand Up @@ -1275,6 +1275,9 @@ void QgsMapToolEditMeshFrame::keyPressEvent( QKeyEvent *e )
break;
}

if ( e->key() == Qt::Key_Escape )
mCadDockWidget->clearPoints();

if ( !consumned && mZValueWidget )
QgsApplication::sendEvent( mZValueWidget->keyboardEntryWidget(), e );
else
Expand Down

0 comments on commit 094c326

Please sign in to comment.