From 7981edd6392fc0598c68b8cdc7625026c6aecde6 Mon Sep 17 00:00:00 2001 From: jrheinlaender Date: Wed, 2 Oct 2013 21:36:30 +0200 Subject: [PATCH] Allow selecting and removing fillet and chamfer references in the dialog (part 2) --- src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp b/src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp index 7420b3a83..31e1ca1f1 100644 --- a/src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp @@ -112,8 +112,10 @@ void TaskDressUpParameters::onButtonRefAdd(bool checked) clearButtons(refAdd); hideObject(); selectionMode = refAdd; - Gui::Selection().clearSelection(); - Gui::Selection().addSelectionGate(new ReferenceSelection(this->getBase(), false, true, false)); + Gui::Selection().clearSelection(); + bool edge = (DressUpView->featureName != "Draft"); + bool face = (DressUpView->featureName == "Draft"); + Gui::Selection().addSelectionGate(new ReferenceSelection(this->getBase(), edge, face, false)); DressUpView->highlightReferences(true); } } @@ -125,7 +127,9 @@ void TaskDressUpParameters::onButtonRefRemove(const bool checked) hideObject(); selectionMode = refRemove; Gui::Selection().clearSelection(); - Gui::Selection().addSelectionGate(new ReferenceSelection(this->getBase(), false, true, false)); + bool edge = (DressUpView->featureName != "Draft"); + bool face = (DressUpView->featureName == "Draft"); + Gui::Selection().addSelectionGate(new ReferenceSelection(this->getBase(), edge, face, false)); DressUpView->highlightReferences(true); } }