Commit 07b4e3e8 authored by David C. Lonie's avatar David C. Lonie
Browse files

Restore the UPDATE_EXTENT after cutting subextents.

This fixes http://www.paraview.org/Bug/view.php?id=15470, which saw
the dataset shrink each time the timestep was changed.
parent d2013691
......@@ -953,7 +953,6 @@ vtkStreamingDemandDrivenPipeline
dobj->GetInformation()->Set(vtkDataObject::ALL_PIECES_EXTENT(),
outInfo->Get(vtkDataObject::ALL_PIECES_EXTENT()),
6);
outInfo->Remove(vtkDataObject::ALL_PIECES_EXTENT());
}
if (outInfo->Has(vtkAlgorithm::CAN_PRODUCE_SUB_EXTENT()))
......@@ -979,6 +978,20 @@ vtkStreamingDemandDrivenPipeline
data->GenerateGhostArray(zeroExt);
}
}
// Restore the full update extent, as the subextent handling will
// clobber it
if (outInfo->Has(vtkDataObject::ALL_PIECES_EXTENT()))
{
outInfo->Set(UPDATE_EXTENT(),
outInfo->Get(vtkDataObject::ALL_PIECES_EXTENT()), 6);
}
}
// Remove ALL_PIECES_EXTENT from outInfo (it was moved to the data obj
// earlier).
if (outInfo->Has(vtkDataObject::ALL_PIECES_EXTENT()))
{
outInfo->Remove(vtkDataObject::ALL_PIECES_EXTENT());
}
}
}
......
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