Skip to content

Commit

Permalink
fix incorrect name for spatial field on transferFunction1D volumes (#182
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jeffamstutz authored Feb 28, 2024
1 parent d0b04e4 commit d6b6489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void GravityVolume::commit()
anari::commitParameters(d, field);

auto volume = anari::newObject<anari::Volume>(d, "transferFunction1D");
anari::setAndReleaseParameter(d, volume, "field", field);
anari::setAndReleaseParameter(d, volume, "value", field);

{
std::vector<math::float3> colors;
Expand Down
2 changes: 1 addition & 1 deletion libs/helide/scene/volume/TransferFunction1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void TransferFunction1D::commit()
if (m_field)
m_field->removeCommitObserver(this);

m_field = getParamObject<SpatialField>("field");
m_field = getParamObject<SpatialField>("value");
if (!m_field) {
reportMessage(ANARI_SEVERITY_WARNING,
"no spatial field provided to transferFunction1D volume");
Expand Down

0 comments on commit d6b6489

Please sign in to comment.