Commit c4246af0 authored by Brad King's avatar Brad King
Browse files

BUG: If InsertExtractPiecesIfNecessary does not need to insert anything, do...

BUG: If InsertExtractPiecesIfNecessary does not need to insert anything, do not try to do so (if tempDataPiece.ID == 0, return).
parent fdab5775
......@@ -22,7 +22,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkSMPart);
vtkCxxRevisionMacro(vtkSMPart, "1.4");
vtkCxxRevisionMacro(vtkSMPart, "1.5");
//----------------------------------------------------------------------------
......@@ -228,10 +228,13 @@ void vtkSMPart::InsertExtractPiecesIfNecessary()
"vtkStructuredCacheFilter", stream);
}
}
else
// If no filter is to be inserted, just return.
if(tempDataPiece.ID == 0)
{
return;
}
// Connect the filter to the pipeline.
stream << vtkClientServerStream::Invoke << tempDataPiece
<< "SetInput"
......
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