diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-04-22 21:21:58 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-04-23 00:15:41 +0300 |
commit | bdc537e0a7b4b62af049dd4d508d5b08a4fa8b3b (patch) | |
tree | 2abe1ff8fa82d46affc481552e12a13b244c2c38 /intern/cycles/scene/volume.cpp | |
parent | ac8beb4fda6f6cdfd658aeee05f9eba55ba3d8cc (diff) |
Fix deprecation warning when building with OpenVDB 9
Based on patch by Sebastian Parborg.
Diffstat (limited to 'intern/cycles/scene/volume.cpp')
-rw-r--r-- | intern/cycles/scene/volume.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/scene/volume.cpp b/intern/cycles/scene/volume.cpp index 1357d5ed762..39e9b0bbbf4 100644 --- a/intern/cycles/scene/volume.cpp +++ b/intern/cycles/scene/volume.cpp @@ -259,7 +259,8 @@ void VolumeMeshBuilder::add_grid(openvdb::GridBase::ConstPtr grid, void VolumeMeshBuilder::add_padding(int pad_size) { #ifdef WITH_OPENVDB - openvdb::tools::dilateVoxels(topology_grid->tree(), pad_size); + openvdb::tools::dilateActiveValues( + topology_grid->tree(), pad_size, openvdb::tools::NN_FACE, openvdb::tools::IGNORE_TILES); #else (void)pad_size; #endif |