From: Anthony Geay Date: Wed, 24 Jul 2019 09:14:59 +0000 (+0200) Subject: [EDF19861] : Copy components names in the output array. X-Git-Tag: V9_4_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c4277847a7de996df3c3407a1b2e38b957973f6c;p=modules%2Fparavis.git [EDF19861] : Copy components names in the output array. --- diff --git a/src/Plugins/DifferenceTimesteps/vtkDifferenceTimestepsFilter.cxx b/src/Plugins/DifferenceTimesteps/vtkDifferenceTimestepsFilter.cxx index 9a2baa03..f1e8a18c 100644 --- a/src/Plugins/DifferenceTimesteps/vtkDifferenceTimestepsFilter.cxx +++ b/src/Plugins/DifferenceTimesteps/vtkDifferenceTimestepsFilter.cxx @@ -77,6 +77,11 @@ void vtkTemporalDataDifference( *anOutputData++ = static_cast(x1[c]-x0[c]); } } + // Copy component name + for (int c = 0; c < theNumComp; ++c) + { + theOutput->SetComponentName(c,theArrays[0]->GetComponentName(c)); + } theOutput->SetNumberOfTuples(N); }