Commit fc165a3d authored by Yumin Yuan's avatar Yumin Yuan
Browse files

ENH: Modified code to set ContentType in IDs selection case for emplty...

ENH: Modified code to set ContentType in IDs selection case for emplty selection, so that extract selection filter will pass the content type checking.
parent 0c0d81d2
......@@ -27,7 +27,7 @@
#include "vtkstd/vector"
#include "vtkstd/set"
vtkCxxRevisionMacro(vtkSelectionSource, "1.11");
vtkCxxRevisionMacro(vtkSelectionSource, "1.12");
vtkStandardNewMacro(vtkSelectionSource);
class vtkSelectionSourceInternals
......@@ -261,7 +261,11 @@ int vtkSelectionSource::RequestData(
(this->ContentType == vtkSelection::GLOBALIDS) ||
(this->ContentType == vtkSelection::INDICES))
{
output->GetProperties()->Set(vtkSelection::CONTENT_TYPE(),
this->ContentType);
output->GetProperties()->Set(vtkSelection::FIELD_TYPE(),
this->FieldType);
// Number of selected items common to all pieces
vtkIdType numCommonElems = 0;
if (!this->Internal->IDs.empty())
......@@ -291,10 +295,6 @@ int vtkSelectionSource::RequestData(
if (selSet.size() > 0)
{
output->GetProperties()->Set(vtkSelection::CONTENT_TYPE(),
this->ContentType);
output->GetProperties()->Set(vtkSelection::FIELD_TYPE(),
this->FieldType);
// Create the selection list
vtkIdTypeArray* selectionList = vtkIdTypeArray::New();
selectionList->SetNumberOfTuples(selSet.size());
......
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