From: dipts Date: Sat, 10 Feb 2018 23:31:43 +0000 (+0100) Subject: 0029500: Visualization - AIS_Point dynamic highlighting is not drawn on RedrawImmediate X-Git-Tag: V7_3_0_beta~89 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=db60634ed1d6b612ed16f65febea98296ba16255;p=occt-copy.git 0029500: Visualization - AIS_Point dynamic highlighting is not drawn on RedrawImmediate ZLayer for Dynamic highlighting of AIS_Point has been set to Graphic3d_ZLayerId_Top and of Selected highlighting to Graphic3d_ZLayerId_UNKNOWN, to follow the behavior of normal AIS object. --- diff --git a/src/AIS/AIS_Point.cxx b/src/AIS/AIS_Point.cxx index 345c4462a4..ae204116ed 100644 --- a/src/AIS/AIS_Point.cxx +++ b/src/AIS/AIS_Point.cxx @@ -52,10 +52,12 @@ myTOM(Aspect_TOM_PLUS) myHilightDrawer->SetDisplayMode (-99); myHilightDrawer->SetPointAspect (new Prs3d_PointAspect (Aspect_TOM_PLUS, Quantity_NOC_GRAY80, 3.0)); myHilightDrawer->SetColor (Quantity_NOC_GRAY80); + myHilightDrawer->SetZLayer (Graphic3d_ZLayerId_UNKNOWN); myDynHilightDrawer = new Prs3d_Drawer(); myDynHilightDrawer->SetDisplayMode (-99); myDynHilightDrawer->SetPointAspect (new Prs3d_PointAspect (Aspect_TOM_PLUS, Quantity_NOC_CYAN1, 3.0)); myDynHilightDrawer->SetColor (Quantity_NOC_CYAN1); + myDynHilightDrawer->SetZLayer (Graphic3d_ZLayerId_Top); } //=======================================================================