From: apo Date: Fri, 11 May 2007 06:41:27 +0000 (+0000) Subject: Fix on crash of ScalarMap on Groups preview X-Git-Tag: T_EDF_15278~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d842e7faf5f861d6de89eae8352966580f313c8;p=modules%2Fvisu.git Fix on crash of ScalarMap on Groups preview --- 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();