+ respect Selectable property in SoFCUnifiedSelection node
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5136 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
@@ -1012,6 +1012,14 @@ Base::Vector3d ViewProviderSketch::seekConstraintPosition(const Base::Vector3d &
|
||||
return freePos;
|
||||
}
|
||||
|
||||
bool ViewProviderSketch::isSelectable(void) const
|
||||
{
|
||||
if (isEditing())
|
||||
return false;
|
||||
else
|
||||
return PartGui::ViewProvider2DObject::isSelectable();
|
||||
}
|
||||
|
||||
void ViewProviderSketch::onSelectionChanged(const Gui::SelectionChanges& msg)
|
||||
{
|
||||
// are we in edit?
|
||||
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
void drawEdit(const std::vector<Base::Vector2D> &EditCurve);
|
||||
|
||||
/// Is the view provider selectable
|
||||
bool isSelectable(void) const {return !isEditing();}
|
||||
bool isSelectable(void) const;
|
||||
/// Observer message from the Selection
|
||||
virtual void onSelectionChanged(const Gui::SelectionChanges& msg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user