Commit 851d36d4 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

ensure array information is copied in vtkSortedTableStreamer.

vtkSortedTableStreamer needed to copy array information explicitly to
ensure we don't loose information like component names when this filter
is applied.
parent 66f5c83b
......@@ -105,6 +105,10 @@ public:
dstArray->SetNumberOfComponents(otherArray->GetNumberOfComponents());
dstArray->SetName(otherArray->GetName());
dstArray->Allocate(minSize * otherArray->GetNumberOfComponents());
if (auto oinfo = otherArray->GetInformation())
{
dstArray->CopyInformation(oinfo);
}
}
for (vtkIdType idx = 0; idx < otherArray->GetNumberOfTuples(); ++idx)
......@@ -1067,6 +1071,11 @@ public:
subArray->SetNumberOfComponents(srcArray->GetNumberOfComponents());
subArray->SetName(srcArray->GetName());
subArray->Allocate(size * srcArray->GetNumberOfComponents());
if (auto sinfo = srcArray->GetInformation())
{
subArray->CopyInformation(sinfo);
}
vtkIdType max = size + offset;
if (sorter != NULL && sorter->Array != NULL)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment