Allow selecting and removing fillet and chamfer references in the dialog (part 2)
This commit is contained in:
parent
ee7f50a554
commit
7981edd639
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user