PD: add SelectionFilterGate to filter dependents, fix mirror taskview

This commit is contained in:
Sergo
2016-10-11 20:58:27 -04:00
committed by wmayer
parent f880202fe6
commit e1a50ca414
5 changed files with 35 additions and 22 deletions

View File

@@ -338,7 +338,9 @@ void TaskTransformedParameters::exitSelectionMode()
void TaskTransformedParameters::addReferenceSelectionGate(bool edge, bool face)
{
Gui::Selection().addSelectionGate(new ReferenceSelection(getBaseObject(), edge, face, /*point =*/ true));
std::unique_ptr<Gui::SelectionFilterGate> gateRefPtr = std::make_unique<ReferenceSelection>(getBaseObject(), edge, face, /*point =*/ true);
std::unique_ptr<Gui::SelectionFilterGate> gateDepPtr = std::make_unique<NoDependentsSelection>(getTopTransformedObject());
Gui::Selection().addSelectionGate(new CombineSelectionFilterGates(gateRefPtr, gateDepPtr));
}
//**************************************************************************