Commit fe07830c authored by Aron Helser's avatar Aron Helser Committed by Kitware Robot
Browse files

Merge topic 'vtk_repr_image_data'

6879689a

 Only add image data to the dimension 3 source.

Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !2033
parents a6e1b275 6879689a
......@@ -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