Salome HOME
refs #430: incorrect coordinates in dump polyline
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ZLayers2.cxx
index 0115def52453cf544699819727e24fe0ed8e9c9c..bacb4db1146dbaa8cd284794da27d6a786c2772e 100644 (file)
@@ -40,7 +40,7 @@ void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle_AIS_Int
     if( !aPrsObj.IsNull() )
     {
       theContext->MainPrsMgr()->Color( aPrsObj );
-      int aMode = 0;//aPrsObj->HilightMode();
+      int aMode = aPrsObj->HasHilightMode() ? aPrsObj->HilightMode() : 0;
       SetPrsZLayer( aPrsObj, aMode, theLayer );
       theContext->MainPrsMgr()->Unhighlight( aPrsObj, aMode );
     }