[Bf-blender-cvs] [bdc537e0a7b] master: Fix deprecation warning when building with OpenVDB 9
Brecht Van Lommel
noreply at git.blender.org
Fri Apr 22 23:18:54 CEST 2022
Commit: bdc537e0a7b4b62af049dd4d508d5b08a4fa8b3b
Author: Brecht Van Lommel
Date: Fri Apr 22 20:21:58 2022 +0200
Branches: master
https://developer.blender.org/rBbdc537e0a7b4b62af049dd4d508d5b08a4fa8b3b
Fix deprecation warning when building with OpenVDB 9
Based on patch by Sebastian Parborg.
===================================================================
M intern/cycles/scene/volume.cpp
===================================================================
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
More information about the Bf-blender-cvs
mailing list