From 150483de566996b06438e1f1d1f8f6b9cea6f0d7 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 17 Apr 2020 16:02:27 +0300 Subject: [PATCH] OCC Viewer: correct edges color in wireframe mode --- src/GEOMGUI/GEOM_Displayer.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 231e050c3..cdfc09293 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -831,10 +831,12 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap AISShape->Attributes()->SetLineAspect( anAspect ); // - unfree boundaries color - anAspect = AISShape->Attributes()->UnFreeBoundaryAspect(); - anAspect->SetColor( HasColor() ? (Quantity_NameOfColor)GetColor() : + Handle(Prs3d_LineAspect) aUnFreeBoundaryAspect = + new Prs3d_LineAspect (Quantity_NOC_RED, Aspect_TOL_SOLID, 1.0); + *aUnFreeBoundaryAspect->Aspect() = *AISShape->Attributes()->UnFreeBoundaryAspect()->Aspect(); + aUnFreeBoundaryAspect->SetColor( HasColor() ? (Quantity_NameOfColor)GetColor() : SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::WireframeColor ) ).value() ) ); - AISShape->Attributes()->SetUnFreeBoundaryAspect( anAspect ); + AISShape->Attributes()->SetUnFreeBoundaryAspect( aUnFreeBoundaryAspect ); // - free boundaries color Handle(Prs3d_LineAspect) aFreeBoundaryAspect = -- 2.39.2