Skip to content

Commit

Permalink
GafferVDB::MeshToLevelSet : Add computation of metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldresser-ie committed Jun 25, 2024
1 parent 48f22fb commit 46cad14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Fixes
-----

- IECoreArnold::VDBAlgo : Fixed suppression of exception messages
- GafferVDB::MeshToLevelSet : Added computation of metadata ( needed by Arnold backend for rendering )


1.4.8.0 (relative to 1.4.7.0)
Expand Down
3 changes: 3 additions & 0 deletions src/GafferVDB/MeshToLevelSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ IECore::ConstObjectPtr MeshToLevelSet::computeProcessedObject( const ScenePath &

grid->setName( gridPlug()->getValue() );

// In our Arnold backend, we assume this metadata exists, and otherwise fail to render things
grid->addStatsMetadata();

VDBObjectPtr newVDBObject = new VDBObject();
newVDBObject->insertGrid( grid );

Expand Down

0 comments on commit 46cad14

Please sign in to comment.