#include <AIS_InteractiveObject.hxx>
#include <AIS_ListOfInteractive.hxx>
#include <AIS_ListIteratorOfListOfInteractive.hxx>
+#include <AIS_Trihedron.hxx>
#include <PrsMgr_PresentationManager3d.hxx>
-void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle_AIS_InteractiveContext& theContext,
+void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle(AIS_InteractiveContext)& theContext,
int theLayer )
{
AIS_ListOfInteractive aDisplayedObjects;
for ( ; aListIter.More(); aListIter.Next() )
{
Handle(AIS_InteractiveObject) aPrsObj = aListIter.Value();
- if( !aPrsObj.IsNull() )
+ if( !aPrsObj.IsNull() && !aPrsObj->IsKind( STANDARD_TYPE(AIS_Trihedron) ) )
{
int aMode = aPrsObj->HasHilightMode() ? aPrsObj->HilightMode() : 0;
theContext->MainPrsMgr()->Color( aPrsObj, Quantity_NOC_YELLOW, aMode );