Commit 6879689a authored by Aron Helser's avatar Aron Helser
Browse files

Only add image data to the dimension 3 source.

Images are all we render, and only from block 0.
parent bc43fe36
Pipeline #165845 passed with stages
in 21 minutes and 16 seconds
......@@ -15,6 +15,7 @@
#include "smtk/geometry/Resource.h"
#include "vtkDataObject.h"
#include "vtkImageData.h"
#include "vtkInformation.h"
#include "vtkInformationStringKey.h"
#include "vtkInformationVector.h"
......@@ -263,6 +264,11 @@ int vtkResourceMultiBlockSource::RequestDataFromGeometry(vtkInformation* request
auto& data = geometry.data(obj);
if (data)
{
// only add image data to dim 3 list
if (dim == 3 && !vtkImageData::SafeDownCast(data))
{
return false;
}
vtkResourceMultiBlockSource::SetDataObjectUUID(data->GetInformation(), obj->id());
blocks[dim].push_back(data);
}
......
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