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:
mkr 2012-01-30 12:07:09 +00:00
parent b8e59ec334
commit aa13fb8f08

View File

@ -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 );
} }