From 8d842e7faf5f861d6de89eae8352966580f313c8 Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 11 May 2007 06:41:27 +0000 Subject: [PATCH] Fix on crash of ScalarMap on Groups preview --- src/PIPELINE/VISU_PipeLine.cxx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/PIPELINE/VISU_PipeLine.cxx b/src/PIPELINE/VISU_PipeLine.cxx index 704dd556..406d7a6f 100644 --- a/src/PIPELINE/VISU_PipeLine.cxx +++ b/src/PIPELINE/VISU_PipeLine.cxx @@ -71,7 +71,6 @@ VISU_PipeLine anImplicitBoolean->Delete(); myIsShrinkable = false; - } VISU_PipeLine @@ -104,11 +103,9 @@ VISU_PipeLine { SetImplicitFunction(thePipeLine->GetImplicitFunction()); - // To restore mapper input from pipeline - vtkDataSet* aDatsSet = myMapper->GetInput(); GetMapper()->ShallowCopy(thePipeLine->GetMapper()); - myMapper->SetInput(aDatsSet); + SetInput(thePipeLine->GetInput()); Build(); } @@ -151,10 +148,8 @@ VISU_PipeLine if(theInput) theInput->Update(); - myExtractGeometry->SetInput(theInput); myInput = theInput; - - Modified(); + myExtractGeometry->SetInput(theInput); } VISU_PipeLine::TMapper* @@ -162,10 +157,8 @@ VISU_PipeLine ::GetMapper() { if(GetInput()){ - if(!myMapper->GetInput()){ - GetClippedInput()->Update(); + if(!myMapper->GetInput()) Build(); - } myMapper->Update(); } return myMapper.GetPointer(); -- 2.39.2