From: Anthony Geay Date: Mon, 12 Dec 2022 09:30:18 +0000 (+0100) Subject: [EDF26573] : Same treatment for Point Data and Cell Data X-Git-Tag: V9_11_0a1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=368a5d51d227d5a7808c4744ee7f09ed0c70a7bf;p=modules%2Fparavis.git [EDF26573] : Same treatment for Point Data and Cell Data --- diff --git a/src/Plugins/StaticMesh/plugin/StaticMeshModule/vtkStaticDataSetSurfaceFilter.cxx b/src/Plugins/StaticMesh/plugin/StaticMeshModule/vtkStaticDataSetSurfaceFilter.cxx index 5d923488..6eb5aac3 100644 --- a/src/Plugins/StaticMesh/plugin/StaticMeshModule/vtkStaticDataSetSurfaceFilter.cxx +++ b/src/Plugins/StaticMesh/plugin/StaticMeshModule/vtkStaticDataSetSurfaceFilter.cxx @@ -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