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