Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-01 02:06:13 +0300
committerHans Goudey <h.goudey@me.com>2022-09-01 02:06:13 +0300
commit9806672e86838f6b93722bdc860121fbd2cc5795 (patch)
tree1b4ccb9afb3ea897426471acbeccf19a846ae33a /intern
parent3a605b23d02263be6bca9046e20b46a60832d971 (diff)
Fix: Build error in Cycles with OpenVDB turned off
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/scene/volume.cpp2
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)