From f2a46636f746c97d7c2a97d6a83f2ba8e78806fb Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 24 Jan 2017 15:57:44 +0300 Subject: [PATCH] Porting to OCCT 7.1 --- src/HYDROGUI/HYDROGUI_ZLayers2.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/HYDROGUI/HYDROGUI_ZLayers2.cxx b/src/HYDROGUI/HYDROGUI_ZLayers2.cxx index af9391c7..c3f54766 100644 --- a/src/HYDROGUI/HYDROGUI_ZLayers2.cxx +++ b/src/HYDROGUI/HYDROGUI_ZLayers2.cxx @@ -23,6 +23,7 @@ #include #include #include +#include void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle(AIS_InteractiveContext)& theContext, int theLayer ) @@ -37,7 +38,12 @@ void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle(AIS_Int if( !aPrsObj.IsNull() && !aPrsObj->IsKind( STANDARD_TYPE(AIS_Trihedron) ) ) { int aMode = aPrsObj->HasHilightMode() ? aPrsObj->HilightMode() : 0; - theContext->MainPrsMgr()->Color( aPrsObj, Quantity_NOC_YELLOW, aMode ); +#if OCC_VERSION_LARGE < 0x07010000 + Quantity_NameOfColor aStyle = Quantity_NOC_YELLOW; +#else + Handle(Graphic3d_HighlightStyle) aStyle = new Graphic3d_HighlightStyle( Aspect_TOHM_COLOR, Quantity_NOC_YELLOW ); +#endif + theContext->MainPrsMgr()->Color( aPrsObj, aStyle, aMode ); SetPrsZLayer( aPrsObj, aMode, theLayer ); theContext->MainPrsMgr()->Unhighlight( aPrsObj, aMode ); } -- 2.39.2