Commit 1c277e28 authored by Berk Geveci's avatar Berk Geveci
Browse files

BUG: Was not passing field data

parent 4792497d
......@@ -20,7 +20,7 @@
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
vtkCxxRevisionMacro(vtkMaskFields, "1.6");
vtkCxxRevisionMacro(vtkMaskFields, "1.7");
vtkStandardNewMacro(vtkMaskFields);
char vtkMaskFields::FieldLocationNames[3][12]
......@@ -457,8 +457,11 @@ void vtkMaskFields::Execute()
}
}
// Pass all. (data object's field data is passed by the
// superclass after this method)
// Pass all.
if ( output->GetFieldData() && input->GetFieldData() )
{
output->GetFieldData()->PassData( input->GetFieldData() );
}
output->GetPointData()->PassData( input->GetPointData() );
output->GetCellData()->PassData( input->GetCellData() );
......
......@@ -22,7 +22,7 @@
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
vtkCxxRevisionMacro(vtkRearrangeFields, "1.12");
vtkCxxRevisionMacro(vtkRearrangeFields, "1.13");
vtkStandardNewMacro(vtkRearrangeFields);
typedef vtkRearrangeFields::Operation Operation;
......@@ -81,8 +81,11 @@ void vtkRearrangeFields::Execute()
while (cur);
}
// Pass all. (data object's field data is passed by the
// superclass after this method)
// Pass all.
if ( output->GetFieldData() && input->GetFieldData() )
{
output->GetFieldData()->PassData( input->GetFieldData() );
}
output->GetPointData()->PassData( input->GetPointData() );
output->GetCellData()->PassData( input->GetCellData() );
}
......
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