PD: cleanup the mess with boolean arguments and replace them with a bitmask
This commit is contained in:
@@ -410,10 +410,9 @@ void TaskTransformedParameters::exitSelectionMode()
|
||||
}
|
||||
}
|
||||
|
||||
void TaskTransformedParameters::addReferenceSelectionGate(bool edge, bool face, bool planar, bool whole, bool circle)
|
||||
void TaskTransformedParameters::addReferenceSelectionGate(AllowSelectionFlags allow)
|
||||
{
|
||||
std::unique_ptr<Gui::SelectionFilterGate> gateRefPtr(
|
||||
new ReferenceSelection(getBaseObject(), edge, face, planar, false, whole, circle));
|
||||
std::unique_ptr<Gui::SelectionFilterGate> gateRefPtr(new ReferenceSelection(getBaseObject(), allow));
|
||||
std::unique_ptr<Gui::SelectionFilterGate> gateDepPtr(new NoDependentsSelection(getTopTransformedObject()));
|
||||
Gui::Selection().addSelectionGate(new CombineSelectionFilterGates(gateRefPtr, gateDepPtr));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user