Commit 7c95fa72 authored by Sebastien Jourdain's avatar Sebastien Jourdain Committed by Kitware Robot

Merge topic 'fix-composite-data-to-unstructured-grid'

ec5457ab Fix vtkCompositeDataToUnstructuredGridFilter array handling
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Utkarsh Ayachit's avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !3189
parents 7a945b30 ec5457ab
Pipeline #134451 running with stage
......@@ -112,7 +112,14 @@ int vtkCompositeDataToUnstructuredGridFilter::RequestData(vtkInformation* vtkNot
// this will override field data the vtkAppendFilter passed from the first
// block. It seems like a reasonable approach, if global field data is
// present.
output->GetFieldData()->PassData(cd->GetFieldData());
if (ds)
{
output->GetFieldData()->PassData(ds->GetFieldData());
}
else if (cd)
{
output->GetFieldData()->PassData(cd->GetFieldData());
}
}
this->RemovePartialArrays(output);
......
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