From: kgv Date: Mon, 21 Jan 2019 08:57:22 +0000 (+0300) Subject: 0030450: Visualization - AIS_InteractiveContext::MoveTo() never uses V3d_View::Immedi... X-Git-Tag: V7_4_0_beta~263 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=c29c0ad0a2052257e0bd42f3b9491e0a34328acd;p=occt.git 0030450: Visualization - AIS_InteractiveContext::MoveTo() never uses V3d_View::ImmediateRedraw() AIS_InteractiveContext::MoveTo() now calls V3d_View::ImmediateRedraw() when applicable. AIS_Trihedron::HilightOwnerWithColor() - added missing ZLayer setup. --- 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); }