Merge topic 'anari-null-object-fix'

47b6b5664 fix missing null handle check in volume mapper

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kenneth Moreland <morelandkd@ornl.gov>
Merge-request: !3139
This commit is contained in:
Jefferson Amstutz 2023-10-18 18:15:36 +00:00 committed by Kitware Robot
commit 2f7316c6fb

@ -171,6 +171,9 @@ void ANARIMapperVolume::ConstructArrays(bool regenerate)
void ANARIMapperVolume::UpdateSpatialField()
{
if (!this->Handles->SpatialField)
return;
auto d = this->GetDevice();
anari_cpp::unsetParameter(d, this->Handles->SpatialField, "origin");