From: rnv Date: Mon, 18 Nov 2013 13:39:39 +0000 (+0000) Subject: Fix a problem with the local selection. X-Git-Tag: BR_hydro_v_0_3_1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5cf74de868c6ba031b61847dfff5db4a9faf9585;p=modules%2Fgeom.git Fix a problem with the local selection. --- diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 074654890..25ad93b5a 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -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 ); diff --git a/src/OBJECT/GEOM_AISShape.cxx b/src/OBJECT/GEOM_AISShape.cxx index e634e8c90..0326fe01e 100644 --- a/src/OBJECT/GEOM_AISShape.cxx +++ b/src/OBJECT/GEOM_AISShape.cxx @@ -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;