mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 17:40:33 +05:00
Fix regression (after fix for PAL21179):
1) OCC viewer: get the correct default color for wireframe mode from preferences; 2) OCC viewer: change edges color for wireframe mode after change the color of the shape.
This commit is contained in:
parent
b8e59ec334
commit
aa13fb8f08
@ -222,8 +222,11 @@ void GEOMToolsGUI::OnAutoColor()
|
|||||||
ic->SetLocalAttributes( io, aCurDrawer );
|
ic->SetLocalAttributes( io, aCurDrawer );
|
||||||
|
|
||||||
io->SetColor( aQuanColor );
|
io->SetColor( aQuanColor );
|
||||||
if ( io->IsKind( STANDARD_TYPE(GEOM_AISShape) ) )
|
if ( io->IsKind( STANDARD_TYPE(GEOM_AISShape) ) ) {
|
||||||
Handle(GEOM_AISShape)::DownCast( io )->SetShadingColor( aQuanColor );
|
Handle(GEOM_AISShape) aGAISShape = Handle(GEOM_AISShape)::DownCast( io );
|
||||||
|
aGAISShape->SetShadingColor( aQuanColor );
|
||||||
|
aGAISShape->storeBoundaryColors();
|
||||||
|
}
|
||||||
|
|
||||||
io->Redisplay( Standard_True );
|
io->Redisplay( Standard_True );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user