Allow selecting geometry from another body inside the same part as a reference
This commit is contained in:
committed by
Stefan Tröger
parent
2d080dd92b
commit
fa020cf867
@@ -30,14 +30,20 @@ namespace PartDesignGui {
|
||||
class ReferenceSelection : public Gui::SelectionFilterGate
|
||||
{
|
||||
const App::DocumentObject* support;
|
||||
// If set to true, allow picking edges or planes or both
|
||||
bool edge, plane;
|
||||
// If set to true, allow only linear edges and planar faces
|
||||
bool planar;
|
||||
// If set to true, allow picking datum points
|
||||
bool point;
|
||||
// If set to true, allow picking objects from another body in the same part
|
||||
bool allowOtherBody;
|
||||
|
||||
public:
|
||||
ReferenceSelection(const App::DocumentObject* support_,
|
||||
const bool edge_, const bool plane_, const bool planar_, const bool point_ = false)
|
||||
: Gui::SelectionFilterGate((Gui::SelectionFilter*)0),
|
||||
support(support_), edge(edge_), plane(plane_), planar(planar_), point(point_)
|
||||
support(support_), edge(edge_), plane(plane_), planar(planar_), point(point_), allowOtherBody(true)
|
||||
{
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user