From b9be249d43d69889183b34119ebc0032dbb3dff0 Mon Sep 17 00:00:00 2001 From: rkv Date: Tue, 14 Nov 2006 10:27:24 +0000 Subject: [PATCH] SVTK_Viewer::EraseAll for call with parameter "true" is fixed to remove a renderer from an actor and not vice versa. --- src/SVTK/SVTK_ViewModel.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SVTK/SVTK_ViewModel.cxx b/src/SVTK/SVTK_ViewModel.cxx index 0624c7d47..3128c1678 100644 --- a/src/SVTK/SVTK_ViewModel.cxx +++ b/src/SVTK/SVTK_ViewModel.cxx @@ -410,7 +410,8 @@ SVTK_Viewer //if(!anObj.IsNull() && anObj->hasEntry() && aStudy) // ToolsGUI::SetVisibility(aStudy,anObj->getEntry(),false,this); if(forced) - aRenderer->RemoveActor(anAct); + // RKV : aRenderer->RemoveActor(anAct); + anAct->RemoveFromRender(aRenderer); // RKV else{ // just erase actor anAct->SetVisibility( false ); -- 2.39.2