Merge topic 'anari_volume_parameter_fix'

149e7f9e1 set spatial field parameter on volumes with the correct name

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3204
This commit is contained in:
Jefferson Amstutz 2024-03-04 16:42:42 +00:00 committed by Kitware Robot
commit c90fb4bc22

@ -105,7 +105,9 @@ anari_cpp::Volume ANARIMapperVolume::GetANARIVolume()
anari_cpp::setAndReleaseParameter(d, this->Handles->Volume, "color", colorArray);
anari_cpp::setAndReleaseParameter(d, this->Handles->Volume, "opacity", opacityArray);
// Keep old name as a parameter for bug-backwards compatibility: 'field' isn't the right name
anari_cpp::setParameter(d, this->Handles->Volume, "field", this->GetANARISpatialField());
anari_cpp::setParameter(d, this->Handles->Volume, "value", this->GetANARISpatialField());
anari_cpp::setParameter(d, this->Handles->Volume, "name", this->MakeObjectName("volume"));
anari_cpp::commitParameters(d, this->Handles->Volume);