Fix a problem with the local selection.

This commit is contained in:
rnv 2013-11-18 13:39:39 +00:00
parent 33685653ae
commit 5cf74de868
2 changed files with 5 additions and 1 deletions

View File

@ -1044,6 +1044,9 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
// create presentation (specific for vectors)
Handle(GEOM_AISShape) AISShape = ( myType == GEOM_VECTOR ) ? new GEOM_AISVector( myShape, "" )
: new GEOM_AISShape ( myShape, "" );
if( myType == GEOM_FIELD_STEP )
AISShape->SetHilightMode( GEOM_AISShape::CustomHighlight );
// update shape properties
updateShapeProperties( AISShape, true );

View File

@ -153,7 +153,8 @@ GEOM_AISShape::GEOM_AISShape(const TopoDS_Shape& shape,
myFieldStepRangeMin(0),
myFieldStepRangeMax(0)
{
SetHilightMode( CustomHighlight ); // override setting the mode to 0 inside AIS_Shape constructor
//rnv: Commented to avoid bug with local selection
//SetHilightMode( CustomHighlight ); // override setting the mode to 0 inside AIS_Shape constructor
myShadingColor = Quantity_Color( Quantity_NOC_GOLDENROD );
myPrevDisplayMode = 0;