Commit 9531f58b authored by Cory Quammen's avatar Cory Quammen Committed by Kitware Robot

Merge topic 'prevent-crash-fixed-volume-ray-caster'

f3c73c06 Skip rendering if input is not a vtkImageData
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !6911
parents f8267035 f3c73c06
......@@ -1369,6 +1369,12 @@ void vtkFixedPointVolumeRayCastMapper::Render(vtkRenderer* ren, vtkVolume* vol)
// this->ThreadWarning = false;
// }
if (vtkImageData::SafeDownCast(this->GetInput()) == nullptr)
{
vtkWarningMacro("Mapper supports only vtkImageData");
return;
}
if (this->GetBlendMode() != vtkVolumeMapper::COMPOSITE_BLEND &&
this->GetBlendMode() != vtkVolumeMapper::MAXIMUM_INTENSITY_BLEND &&
this->GetBlendMode() != vtkVolumeMapper::MINIMUM_INTENSITY_BLEND &&
......
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