]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
[EDF26573] : Same treatment for Point Data and Cell Data
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 12 Dec 2022 09:30:18 +0000 (10:30 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 12 Dec 2022 09:30:18 +0000 (10:30 +0100)
src/Plugins/StaticMesh/plugin/StaticMeshModule/vtkStaticDataSetSurfaceFilter.cxx

index 5d923488bd25995ae6f4e2a768f45e635cdca04d..6eb5aac3ea81967835e9023db638f92baf144150 100644 (file)
@@ -75,11 +75,7 @@ int vtkStaticDataSetSurfaceFilter::UnstructuredGridExecute(vtkDataSet* input, vt
     // Remove array that have disappeared from input
     for (int iArr = outPD->GetNumberOfArrays() - 1; iArr >= 0; iArr--)
     {
-      vtkAbstractArray* inArr = inPD->GetAbstractArray(outPD->GetArrayName(iArr));
-      if (!inArr)
-      {
-        outPD->RemoveArray(iArr);
-      }
+      outPD->RemoveArray(iArr);
     }
 
     // Update or create arrays present in input