From 95127ea780c0647c7501dd4e479c8f7f16716ae4 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 23 Sep 2005 05:55:01 +0000 Subject: [PATCH] To fix a regression --- src/VVTK/VVTK_Renderer.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/VVTK/VVTK_Renderer.cxx b/src/VVTK/VVTK_Renderer.cxx index 67faca39..4e8b9f13 100644 --- a/src/VVTK/VVTK_Renderer.cxx +++ b/src/VVTK/VVTK_Renderer.cxx @@ -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(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); } } -- 2.39.2