Salome HOME
Fix regression (after fix for PAL21179):
authormkr <mkr@opencascade.com>
Mon, 30 Jan 2012 12:07:56 +0000 (12:07 +0000)
committermkr <mkr@opencascade.com>
Mon, 30 Jan 2012 12:07:56 +0000 (12:07 +0000)
1) VTK viewer: change edges color for wireframe mode after change the color of the shape.

src/OBJECT/GEOM_Actor.cxx

index 3e2d7a1b1a4e7cf3c07015d25b992aaa6b78cc33..318ea45b86e54b141b2a9b0084b4f561a4f2dc26 100644 (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)
     mySharedEdgeActor->GetProperty()->SetColor(r,g,b);           // share edge color (Wireframe)
   }
+
+  StoreBoundaryColors();
 }
 
 void GEOM_Actor::GetColor(vtkFloatingPointType& r,vtkFloatingPointType& g,vtkFloatingPointType& b)
@@ -1008,7 +1010,8 @@ void GEOM_Actor::ResetIsoNumbers()
 
 void GEOM_Actor::StoreBoundaryColors()
 {
-  mySharedEdgeActor->GetProperty()->GetColor(myEdgesInWireframeColor);
+  myShadingFaceProp->GetColor(myEdgesInWireframeColor);
+
 }
  
 void GEOM_Actor::RestoreBoundaryColors()