]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Bug IPAL21655 - Points representation works incorrectly with white background
authorouv <ouv@opencascade.com>
Mon, 29 Mar 2010 08:24:47 +0000 (08:24 +0000)
committerouv <ouv@opencascade.com>
Mon, 29 Mar 2010 08:24:47 +0000 (08:24 +0000)
src/OBJECT/SMESH_Actor.cxx

index cef45817b2e653f01fd86f848abde61917079a39..e27fe9abc511098b23b53c497402068caec50dbe 100644 (file)
@@ -881,8 +881,6 @@ SetControlMode(eControl theMode,
 
 
 void SMESH_ActorDef::AddToRender(vtkRenderer* theRenderer){
-  SALOME_Actor::AddToRender(theRenderer);
-
   theRenderer->AddActor(myNodeActor);
   theRenderer->AddActor(myBaseActor);
   
@@ -907,6 +905,10 @@ void SMESH_ActorDef::AddToRender(vtkRenderer* theRenderer){
 
   theRenderer->AddActor2D(myPointLabels);
   theRenderer->AddActor2D(myCellsLabels);
+
+  // the superclass' method should be called at the end
+  // (in particular, for correct work of selection)
+  SALOME_Actor::AddToRender(theRenderer);
 }
 
 void SMESH_ActorDef::RemoveFromRender(vtkRenderer* theRenderer){