From: apo Date: Fri, 23 Sep 2005 05:55:01 +0000 (+0000) Subject: To fix a regression X-Git-Tag: BR-D5-38-2003_D2005-12-10~150 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=95127ea780c0647c7501dd4e479c8f7f16716ae4;p=modules%2Fvisu.git To fix a regression --- 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); } }