From d6b64894f96a76521a220d04ece9c5ed66729b2b Mon Sep 17 00:00:00 2001 From: Jefferson Amstutz Date: Tue, 27 Feb 2024 20:01:40 -0600 Subject: [PATCH] fix incorrect name for spatial field on transferFunction1D volumes (#182) --- libs/anari_test_scenes/scenes/demo/gravity_spheres_volume.cpp | 2 +- libs/helide/scene/volume/TransferFunction1D.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/anari_test_scenes/scenes/demo/gravity_spheres_volume.cpp b/libs/anari_test_scenes/scenes/demo/gravity_spheres_volume.cpp index 42e1d090..92ef4d65 100644 --- a/libs/anari_test_scenes/scenes/demo/gravity_spheres_volume.cpp +++ b/libs/anari_test_scenes/scenes/demo/gravity_spheres_volume.cpp @@ -121,7 +121,7 @@ void GravityVolume::commit() anari::commitParameters(d, field); auto volume = anari::newObject(d, "transferFunction1D"); - anari::setAndReleaseParameter(d, volume, "field", field); + anari::setAndReleaseParameter(d, volume, "value", field); { std::vector colors; diff --git a/libs/helide/scene/volume/TransferFunction1D.cpp b/libs/helide/scene/volume/TransferFunction1D.cpp index 9668b8d4..0d1bc1d2 100644 --- a/libs/helide/scene/volume/TransferFunction1D.cpp +++ b/libs/helide/scene/volume/TransferFunction1D.cpp @@ -18,7 +18,7 @@ void TransferFunction1D::commit() if (m_field) m_field->removeCommitObserver(this); - m_field = getParamObject("field"); + m_field = getParamObject("value"); if (!m_field) { reportMessage(ANARI_SEVERITY_WARNING, "no spatial field provided to transferFunction1D volume");