From: jfa Date: Fri, 17 Apr 2020 13:02:27 +0000 (+0300) Subject: OCC Viewer: correct edges color in wireframe mode X-Git-Tag: V9_5_0b1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=150483de566996b06438e1f1d1f8f6b9cea6f0d7;p=modules%2Fgeom.git OCC Viewer: correct edges color in wireframe mode --- 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 =