]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To fix a regression
authorapo <apo@opencascade.com>
Fri, 23 Sep 2005 05:55:01 +0000 (05:55 +0000)
committerapo <apo@opencascade.com>
Fri, 23 Sep 2005 05:55:01 +0000 (05:55 +0000)
src/VVTK/VVTK_Renderer.cxx

index 67faca3958c6038b5ed6ff4e94e40a0a1647f91f..4e8b9f13a8d922e773117ad322fcef8c81406017 100644 (file)
@@ -184,7 +184,7 @@ VVTK_Renderer2
     if(TGaussPtsActorFactory* aFactory = anActor->GetGaussPtsFactory()){
       if(VISU_GaussPtsAct* anActor2 = aFactory->CloneActor(anActor)){
        anActor2->GetGaussPointsPL()->SetImplicitFunction(myImplicitFunction.GetPointer());
-       SVTK_Renderer::AddActor(theActor);
+       SVTK_Renderer::AddActor(anActor2);
       }
     }
   }
@@ -197,11 +197,7 @@ VVTK_Renderer2
 {
   using namespace VISU;  
   if(VISU_GaussPtsAct* anActor = dynamic_cast<VISU_GaussPtsAct*>(theActor)){
-    if(TGaussPtsActorFactory* aFactory = anActor->GetGaussPtsFactory()){
-      if(VISU_GaussPtsAct* anActor2 = aFactory->CloneActor(anActor)){
-       anActor2->GetGaussPointsPL()->SetImplicitFunction(NULL);
-       SVTK_Renderer::RemoveActor(theActor);
-      }
-    }
+    anActor->GetGaussPointsPL()->SetImplicitFunction(NULL);
+    SVTK_Renderer::RemoveActor(theActor);
   }
 }