+ correctly handle toggle selection in BRep shape nodes
This commit is contained in:
parent
19c840e1ab
commit
6111f55a89
|
@ -321,6 +321,7 @@ void SoBrepEdgeSet::doAction(SoAction* action)
|
||||||
case Gui::SoSelectionElementAction::Remove:
|
case Gui::SoSelectionElementAction::Remove:
|
||||||
{
|
{
|
||||||
int start = this->selectionIndex.find(index);
|
int start = this->selectionIndex.find(index);
|
||||||
|
if (start >= 0)
|
||||||
this->selectionIndex.deleteValues(start,1);
|
this->selectionIndex.deleteValues(start,1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -144,6 +144,7 @@ void SoBrepFaceSet::doAction(SoAction* action)
|
||||||
case Gui::SoSelectionElementAction::Remove:
|
case Gui::SoSelectionElementAction::Remove:
|
||||||
{
|
{
|
||||||
int start = this->selectionIndex.find(index);
|
int start = this->selectionIndex.find(index);
|
||||||
|
if (start >= 0)
|
||||||
this->selectionIndex.deleteValues(start,1);
|
this->selectionIndex.deleteValues(start,1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -256,6 +256,7 @@ void SoBrepPointSet::doAction(SoAction* action)
|
||||||
case Gui::SoSelectionElementAction::Remove:
|
case Gui::SoSelectionElementAction::Remove:
|
||||||
{
|
{
|
||||||
int start = this->selectionIndex.find(index);
|
int start = this->selectionIndex.find(index);
|
||||||
|
if (start >= 0)
|
||||||
this->selectionIndex.deleteValues(start,1);
|
this->selectionIndex.deleteValues(start,1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user