Build: unbreak WITH_OPENVDB=OFF

This commit is contained in:
Campbell Barton
2025-10-02 21:50:21 +10:00
parent 9d20c8d3c8
commit 88cbc71533

View File

@@ -169,6 +169,7 @@ GeometryInfoLog::GeometryInfoLog(const bke::GeometrySet &geometry_set)
break;
}
case bke::GeometryComponent::Type::Volume: {
#ifdef WITH_OPENVDB
const auto &volume_component = *static_cast<const bke::VolumeComponent *>(component);
if (const Volume *volume = volume_component.get()) {
VolumeInfo &info = this->volume_info.emplace();
@@ -178,6 +179,7 @@ GeometryInfoLog::GeometryInfoLog(const bke::GeometrySet &geometry_set)
info.grids[i] = {grid->name(), bke::volume_grid::get_type(*grid)};
}
}
#endif /* WITH_OPENVDB */
break;
}
case bke::GeometryComponent::Type::GreasePencil: {