mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0025650: Visualization - AIS_Line::ComputeSelection() should not ignore the selection mode argument
Only selection mode 0 is supported from now on.
This commit is contained in:
parent
bc88a67737
commit
270675f51e
@ -135,13 +135,21 @@ void AIS_Line::Compute(const Handle(Prs3d_Projector)& aProjector, const Handle(G
|
|||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
void AIS_Line::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
|
void AIS_Line::ComputeSelection(const Handle(SelectMgr_Selection)& theSelection,
|
||||||
const Standard_Integer)
|
const Standard_Integer theMode)
|
||||||
{
|
{
|
||||||
|
// Do not support selection modes different from 0 currently
|
||||||
|
if (theMode)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!myLineIsSegment) ComputeInfiniteLineSelection(aSelection);
|
if (!myLineIsSegment)
|
||||||
else ComputeSegmentLineSelection(aSelection);
|
{
|
||||||
|
ComputeInfiniteLineSelection(theSelection);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ComputeSegmentLineSelection(theSelection);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user