Commit 96ee02e0 authored by Rusty Blue's avatar Rusty Blue
Browse files

PERF: don't execute the pipeline if numPieces = 0

parent 3f7e1d59
......@@ -24,7 +24,7 @@
#include "vtkTransform.h"
#include "vtkTransformFilter.h"
vtkCxxRevisionMacro(vtkArrowSource, "1.6");
vtkCxxRevisionMacro(vtkArrowSource, "1.7");
vtkStandardNewMacro(vtkArrowSource);
vtkArrowSource::vtkArrowSource()
......@@ -84,7 +84,7 @@ int vtkArrowSource::RequestData(
append->AddInput(tf0->GetPolyDataOutput());
append->AddInput(tf1->GetPolyDataOutput());
if (output->GetUpdatePiece() == 0)
if (output->GetUpdatePiece() == 0 && numPieces > 0)
{
append->Update();
output->ShallowCopy(append->GetOutput());
......
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