From 967d719bdc37444ae8c61ff3dbaebe3ef85469a9 Mon Sep 17 00:00:00 2001 From: Andrew Shkolik Date: Mon, 24 Mar 2025 17:24:01 -0500 Subject: [PATCH] Automatically switch to edge selection mode when creating surface --- src/Mod/Surface/Gui/TaskGeomFillSurface.cpp | 5 +++++ src/Mod/Surface/Gui/TaskSections.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/Mod/Surface/Gui/TaskGeomFillSurface.cpp b/src/Mod/Surface/Gui/TaskGeomFillSurface.cpp index 06fd928d5d..90b6456641 100644 --- a/src/Mod/Surface/Gui/TaskGeomFillSurface.cpp +++ b/src/Mod/Surface/Gui/TaskGeomFillSurface.cpp @@ -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() diff --git a/src/Mod/Surface/Gui/TaskSections.cpp b/src/Mod/Surface/Gui/TaskSections.cpp index 955831a0d3..4b0b2b99ff 100644 --- a/src/Mod/Surface/Gui/TaskSections.cpp +++ b/src/Mod/Surface/Gui/TaskSections.cpp @@ -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()