Commit 426fc1f7 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Make vtkAppendFilter respect copy flags for attributes.

vtkAppendFilter did not respect copy flags for attributes and ended up
erroneously copy global ids. Fixed that.
parent e3f9c88d
......@@ -484,7 +484,14 @@ void vtkAppendFilter::AppendArrays(int attributesType,
// Initialize with the active attribute from the first input
for (int attribute = 0; attribute < vtkDataSetAttributes::NUM_ATTRIBUTES; ++attribute)
{
attributeArrays[attribute] = firstInputData->GetAbstractAttribute(attribute);
if (outputData->GetCopyAttribute(attribute, vtkDataSetAttributes::COPYTUPLE))
{
attributeArrays[attribute] = firstInputData->GetAbstractAttribute(attribute);
}
else
{
attributeArrays[attribute] = nullptr;
}
}
inputs->InitTraversal(iter);
......
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