Automatically switch to edge selection mode when creating surface

This commit is contained in:
Andrew Shkolik
2025-03-24 17:24:01 -05:00
committed by Benjamin Nauck
parent 3bad469ee5
commit ece110f21e
2 changed files with 10 additions and 0 deletions

View File

@@ -338,6 +338,11 @@ void GeomFillSurface::open()
checkOpenCommand();
this->vp->highlightReferences(true);
Gui::Selection().clearSelection();
// if the surface is not yet created then automatically start "AppendEdge" mode
if (editedObject->Shape.getShape().isNull()) {
ui->buttonEdgeAdd->setChecked(true);
}
}
void GeomFillSurface::clearSelection()

View File

@@ -368,6 +368,11 @@ void SectionsPanel::open()
true);
Gui::Selection().clearSelection();
// if the surface is not yet created then automatically start "AppendEdge" mode
if (editedObject->Shape.getShape().isNull()) {
ui->buttonEdgeAdd->setChecked(true);
}
}
void SectionsPanel::clearSelection()