Commit ec5457ab authored by Sebastien Jourdain's avatar Sebastien Jourdain

Fix vtkCompositeDataToUnstructuredGridFilter array handling

When the Appender was used (Input was not an UnstructuredGrid) the input could either be a dataset or a CompositeDataset.
That switch was not taking care and a NULL pointer could be wrongly accessed.

This patch make sure we pass the data from a valid DataObject.
parent 6f23ff5b
......@@ -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.
if (ds)
else if (cd)
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