mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
set spatial field parameter on volumes with the correct name
This commit is contained in:
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user