diff --git a/src/AIS/AIS_InteractiveContext_1.cxx b/src/AIS/AIS_InteractiveContext_1.cxx index 466deaca1a..ce736861ce 100644 --- a/src/AIS/AIS_InteractiveContext_1.cxx +++ b/src/AIS/AIS_InteractiveContext_1.cxx @@ -416,7 +416,14 @@ AIS_StatusOfDetection AIS_InteractiveContext::MoveTo (const Standard_Integer th if (toUpdateViewer && theToRedrawOnUpdate) { - theView->Viewer()->Update(); + if (theView->ComputedMode()) + { + theView->Viewer()->Update(); + } + else + { + theView->Viewer()->RedrawImmediate(); + } } return aStatus; diff --git a/src/AIS/AIS_Trihedron.cxx b/src/AIS/AIS_Trihedron.cxx index 0626d10dd8..23896ab252 100644 --- a/src/AIS/AIS_Trihedron.cxx +++ b/src/AIS/AIS_Trihedron.cxx @@ -335,6 +335,10 @@ void AIS_Trihedron::HilightOwnerWithColor (const Handle(PrsMgr_PresentationManag } aGroup->AddPrimitiveArray (arrayOfPrimitives(aPart)); + if (aPresentation->GetZLayer() != theStyle->ZLayer()) + { + aPresentation->SetZLayer (theStyle->ZLayer()); + } aPresentation->Highlight (theStyle); thePM->AddToImmediateList (aPresentation); }