Fix regression (after fix for PAL21179):

1) VTK 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:56 +00:00
parent aa13fb8f08
commit 50c7a4428d

View File

@ -687,6 +687,8 @@ void GEOM_Actor::SetColor(vtkFloatingPointType r,vtkFloatingPointType g,vtkFloat
myOneFaceEdgeActor->GetProperty()->SetColor(r,g,b); // standalone face edge color (Wireframe) myOneFaceEdgeActor->GetProperty()->SetColor(r,g,b); // standalone face edge color (Wireframe)
mySharedEdgeActor->GetProperty()->SetColor(r,g,b); // share edge color (Wireframe) mySharedEdgeActor->GetProperty()->SetColor(r,g,b); // share edge color (Wireframe)
} }
StoreBoundaryColors();
} }
void GEOM_Actor::GetColor(vtkFloatingPointType& r,vtkFloatingPointType& g,vtkFloatingPointType& b) void GEOM_Actor::GetColor(vtkFloatingPointType& r,vtkFloatingPointType& g,vtkFloatingPointType& b)
@ -1008,7 +1010,8 @@ void GEOM_Actor::ResetIsoNumbers()
void GEOM_Actor::StoreBoundaryColors() void GEOM_Actor::StoreBoundaryColors()
{ {
mySharedEdgeActor->GetProperty()->GetColor(myEdgesInWireframeColor); myShadingFaceProp->GetColor(myEdgesInWireframeColor);
} }
void GEOM_Actor::RestoreBoundaryColors() void GEOM_Actor::RestoreBoundaryColors()