]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for issue 0020167( EDF VISU 956 : [TUI ] AddMeshOnGroup is not fully taken into...
authorrnv <rnv@opencascade.com>
Fri, 20 Feb 2009 12:51:31 +0000 (12:51 +0000)
committerrnv <rnv@opencascade.com>
Fri, 20 Feb 2009 12:51:31 +0000 (12:51 +0000)
src/PIPELINE/VISU_ScalarMapPL.cxx

index 4b4c1b50da09790576b73beeaf887f20e3fcb20a..f1b4914fbc268231dd8fbbc37c1cc36daa152bab 100644 (file)
@@ -181,6 +181,12 @@ int
 VISU_ScalarMapPL
 ::AddGeometry(vtkDataSet* theGeometry)
 {
+  // rnv: to fix issue 0020167 (AddMeshOnGroup is not fully taken into account)
+  // clear all inpust of the this->myAppendFilter in case if presentation 
+  // constructed on the entire mesh.
+  if(!IsExternalGeometryUsed())
+    ClearGeometry();
+
   myAppendFilter->AddInput(theGeometry);
   return GetNumberOfGeometry();
 }