Commit 99d78f3f authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

BUG: DONT_PRUNE is propagated down the pipeline, hence make sure we remove the

flags if already present.
parent 9519226c
......@@ -30,7 +30,7 @@ class vtkExtractBlock::vtkSet : public vtkstd::set<unsigned int>
};
vtkStandardNewMacro(vtkExtractBlock);
vtkCxxRevisionMacro(vtkExtractBlock, "1.2");
vtkCxxRevisionMacro(vtkExtractBlock, "1.3");
vtkInformationKeyMacro(vtkExtractBlock, DONT_PRUNE, Integer);
//----------------------------------------------------------------------------
vtkExtractBlock::vtkExtractBlock()
......@@ -151,6 +151,10 @@ int vtkExtractBlock::RequestData(
{
iter->GetCurrentMetaData()->Set(DONT_PRUNE(), 1);
}
else if (iter->HasCurrentMetaData() && iter->GetCurrentMetaData()->Has(DONT_PRUNE()))
{
iter->GetCurrentMetaData()->Remove(DONT_PRUNE());
}
}
iter->Delete();
......
Supports Markdown
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