diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-01 02:06:13 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-01 02:06:13 +0300 |
commit | 9806672e86838f6b93722bdc860121fbd2cc5795 (patch) | |
tree | 1b4ccb9afb3ea897426471acbeccf19a846ae33a /intern/cycles/scene | |
parent | 3a605b23d02263be6bca9046e20b46a60832d971 (diff) |
Fix: Build error in Cycles with OpenVDB turned off
Diffstat (limited to 'intern/cycles/scene')
-rw-r--r-- | intern/cycles/scene/volume.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/scene/volume.cpp b/intern/cycles/scene/volume.cpp index 337e1833a42..573800fcf80 100644 --- a/intern/cycles/scene/volume.cpp +++ b/intern/cycles/scene/volume.cpp @@ -294,11 +294,13 @@ void VolumeMeshBuilder::create_mesh(vector<float3> &vertices, #endif } +#ifdef WITH_OPENVDB static bool is_non_empty_leaf(const openvdb::MaskGrid::TreeType &tree, const openvdb::Coord coord) { auto *leaf_node = tree.probeLeaf(coord); return (leaf_node && !leaf_node->isEmpty()); } +#endif void VolumeMeshBuilder::generate_vertices_and_quads(vector<ccl::int3> &vertices_is, vector<QuadData> &quads) |