set spatial field parameter on volumes with the correct name

This commit is contained in:
Jefferson Amstutz 2024-02-28 10:31:31 -06:00
parent 65a3118d0a
commit 149e7f9e1b

@ -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);