From 74a7cd4d4191bb07596f213a2733dfde5d09aa64 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 1 Oct 2025 21:45:21 +0000 Subject: [PATCH] Build: unbreak building WITH_OPENVDB=OFF --- source/blender/blenkernel/intern/volume_grid.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/blenkernel/intern/volume_grid.cc b/source/blender/blenkernel/intern/volume_grid.cc index efb939bb35e..429ab0c56fb 100644 --- a/source/blender/blenkernel/intern/volume_grid.cc +++ b/source/blender/blenkernel/intern/volume_grid.cc @@ -509,6 +509,8 @@ std::string error_message_from_load(const VolumeGridData &grid) #endif } +#ifdef WITH_OPENVDB + /** * Call #process_leaf_fn on the leaf node if it has a certain minimum number of active voxels. If * there are only a few active voxels, gather those in #r_coords for later batch processing. @@ -733,4 +735,6 @@ void set_grid_background(openvdb::GridBase &grid_base, const GPointer value) }); } +#endif /* WITH_OPENVDB */ + } // namespace blender::bke::volume_grid