Salome HOME
correct merge BR_hydro_v1_0_3 on BR_quadtree
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ZLayers2.cxx
index 0115def52453cf544699819727e24fe0ed8e9c9c..323aa4a3503e2c0cbd400b1d0a2298e938345c4c 100644 (file)
@@ -39,8 +39,8 @@ void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle_AIS_Int
     Handle(AIS_InteractiveObject) aPrsObj = aListIter.Value();
     if( !aPrsObj.IsNull() )
     {
-      theContext->MainPrsMgr()->Color( aPrsObj );
-      int aMode = 0;//aPrsObj->HilightMode();
+      int aMode = aPrsObj->HasHilightMode() ? aPrsObj->HilightMode() : 0;
+      theContext->MainPrsMgr()->Color( aPrsObj, Quantity_NOC_YELLOW, aMode );
       SetPrsZLayer( aPrsObj, aMode, theLayer );
       theContext->MainPrsMgr()->Unhighlight( aPrsObj, aMode );
     }