Allow selecting and removing fillet and chamfer references in the dialog (part 2)

This commit is contained in:
jrheinlaender 2013-10-02 21:36:30 +02:00 committed by Stefan Tröger
parent ee7f50a554
commit 7981edd639

View File

@ -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);
}
}