]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix on crash of ScalarMap on Groups preview
authorapo <apo@opencascade.com>
Fri, 11 May 2007 06:41:27 +0000 (06:41 +0000)
committerapo <apo@opencascade.com>
Fri, 11 May 2007 06:41:27 +0000 (06:41 +0000)
src/PIPELINE/VISU_PipeLine.cxx

index 704dd556d9846d348f6fd457665681533098bb60..406d7a6f3faeb651c6a64e043356ef9312126dc3 100644 (file)
@@ -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();