Fix: Build error in Cycles with OpenVDB turned off

This commit is contained in:
Hans Goudey 2022-08-31 18:06:13 -05:00 committed by Philipp Oeser
parent b5ff47667d
commit 765f987fee
Notes: blender-bot 2023-06-26 11:58:59 +02:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
1 changed files with 2 additions and 0 deletions

View File

@ -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)