diff options
Diffstat (limited to 'intern')
-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) |